Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent d960b988
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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)