mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: remove isGnome3Session function
This is only used for archaic distros. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
3abb82bfd5
commit
86e3ceb0e9
5 changed files with 0 additions and 63 deletions
|
@ -127,15 +127,6 @@ QWidget *ComboBoxDelegate::createEditor(QWidget *parent, const QStyleOptionViewI
|
|||
currCombo.model = const_cast<QAbstractItemModel *>(index.model());
|
||||
currCombo.activeText = currCombo.model->data(index).toString();
|
||||
|
||||
// Current display of things on Gnome3 looks like shit, so
|
||||
// let's fix that.
|
||||
if (isGnome3Session()) {
|
||||
QPalette p;
|
||||
p.setColor(QPalette::Window, QColor(Qt::white));
|
||||
p.setColor(QPalette::Base, QColor(Qt::white));
|
||||
comboDelegate->lineEdit()->setPalette(p);
|
||||
comboDelegate->setPalette(p);
|
||||
}
|
||||
return comboDelegate;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue