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>
This commit is contained in:
Boris Barbulovski 2015-09-22 11:36:31 -07:00 committed by Michal Marek
parent d960b98899
commit f999cc06f9

View file

@ -318,6 +318,9 @@ ConfigList::ConfigList(ConfigView* p, const char *name)
setSortingEnabled(false);
setRootIsDecorated(true);
setVerticalScrollMode(ScrollPerPixel);
setHorizontalScrollMode(ScrollPerPixel);
setHeaderLabels(QStringList() << _("Option") << _("Name") << "N" << "M" << "Y" << _("Value"));
connect(this, SIGNAL(itemSelectionChanged(void)),
@ -450,11 +453,13 @@ void ConfigList::updateList(ConfigItem* item)
updateMenuList(item, rootEntry);
update();
resizeColumnToContents(0);
return;
}
update:
updateMenuList(this, rootEntry);
update();
resizeColumnToContents(0);
}
void ConfigList::setValue(ConfigItem* item, tristate val)