diff options
author | Boris Barbulovski <bbarbulovski@gmail.com> | 2015-09-22 14:36:31 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2015-10-14 08:59:03 -0400 |
commit | f999cc06f97e0e75b21a114d38e7477c18a5a673 (patch) | |
tree | 852ad04f98a19237756fa01de4df2a0f52a36a64 /scripts/kconfig/qconf.cc | |
parent | d960b9889984d29182c17d55b3cd95c3d8d9d598 (diff) |
Port xconfig to Qt5 - Add horizontal scrollbar, and scroll per pixel.
Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com>
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts/kconfig/qconf.cc')
-rw-r--r-- | scripts/kconfig/qconf.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 9edb9c541664..10fe15d9aca6 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc | |||
@@ -318,6 +318,9 @@ ConfigList::ConfigList(ConfigView* p, const char *name) | |||
318 | setSortingEnabled(false); | 318 | setSortingEnabled(false); |
319 | setRootIsDecorated(true); | 319 | setRootIsDecorated(true); |
320 | 320 | ||
321 | setVerticalScrollMode(ScrollPerPixel); | ||
322 | setHorizontalScrollMode(ScrollPerPixel); | ||
323 | |||
321 | setHeaderLabels(QStringList() << _("Option") << _("Name") << "N" << "M" << "Y" << _("Value")); | 324 | setHeaderLabels(QStringList() << _("Option") << _("Name") << "N" << "M" << "Y" << _("Value")); |
322 | 325 | ||
323 | connect(this, SIGNAL(itemSelectionChanged(void)), | 326 | connect(this, SIGNAL(itemSelectionChanged(void)), |
@@ -450,11 +453,13 @@ void ConfigList::updateList(ConfigItem* item) | |||
450 | 453 | ||
451 | updateMenuList(item, rootEntry); | 454 | updateMenuList(item, rootEntry); |
452 | update(); | 455 | update(); |
456 | resizeColumnToContents(0); | ||
453 | return; | 457 | return; |
454 | } | 458 | } |
455 | update: | 459 | update: |
456 | updateMenuList(this, rootEntry); | 460 | updateMenuList(this, rootEntry); |
457 | update(); | 461 | update(); |
462 | resizeColumnToContents(0); | ||
458 | } | 463 | } |
459 | 464 | ||
460 | void ConfigList::setValue(ConfigItem* item, tristate val) | 465 | void ConfigList::setValue(ConfigItem* item, tristate val) |