Commit f999cc06 authored by Boris Barbulovski's avatar Boris Barbulovski Committed by Michal Marek

Port xconfig to Qt5 - Add horizontal scrollbar, and scroll per pixel.

Signed-off-by: default avatarBoris Barbulovski <bbarbulovski@gmail.com>
Signed-off-by: default avatarThiago Macieira <thiago.macieira@intel.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
parent d960b988
...@@ -318,6 +318,9 @@ ConfigList::ConfigList(ConfigView* p, const char *name) ...@@ -318,6 +318,9 @@ ConfigList::ConfigList(ConfigView* p, const char *name)
setSortingEnabled(false); setSortingEnabled(false);
setRootIsDecorated(true); setRootIsDecorated(true);
setVerticalScrollMode(ScrollPerPixel);
setHorizontalScrollMode(ScrollPerPixel);
setHeaderLabels(QStringList() << _("Option") << _("Name") << "N" << "M" << "Y" << _("Value")); setHeaderLabels(QStringList() << _("Option") << _("Name") << "N" << "M" << "Y" << _("Value"));
connect(this, SIGNAL(itemSelectionChanged(void)), connect(this, SIGNAL(itemSelectionChanged(void)),
...@@ -450,11 +453,13 @@ void ConfigList::updateList(ConfigItem* item) ...@@ -450,11 +453,13 @@ void ConfigList::updateList(ConfigItem* item)
updateMenuList(item, rootEntry); updateMenuList(item, rootEntry);
update(); update();
resizeColumnToContents(0);
return; return;
} }
update: update:
updateMenuList(this, rootEntry); updateMenuList(this, rootEntry);
update(); update();
resizeColumnToContents(0);
} }
void ConfigList::setValue(ConfigItem* item, tristate val) void ConfigList::setValue(ConfigItem* item, tristate val)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment