Skip to content

Commit

Permalink
Port xconfig to Qt5 - Add horizontal scrollbar, and scroll per pixel.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Boris Barbulovski authored and Michal Marek committed Oct 14, 2015
1 parent d960b98 commit f999cc0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/kconfig/qconf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f999cc0

Please sign in to comment.