diff --git a/gwenview/app/startmainpage.cpp b/gwenview/app/startmainpage.cpp index 716895b5..af4f03fb 100644 --- a/gwenview/app/startmainpage.cpp +++ b/gwenview/app/startmainpage.cpp @@ -120,12 +120,6 @@ static void initViewPalette(QAbstractItemView* view, const QColor& fgColor) view->setPalette(palette); } -static bool styleIsGtkBased() -{ - const char* name = QApplication::style()->metaObject()->className(); - return qstrcmp(name, "QGtkStyle") == 0; -} - StartMainPage::StartMainPage(QWidget* parent, GvCore* gvCore) : QFrame(parent) , d(new StartMainPagePrivate) @@ -135,14 +129,6 @@ StartMainPage::StartMainPage(QWidget* parent, GvCore* gvCore) d->mSearchUiInitialized = false; d->setupUi(this); - if (styleIsGtkBased()) { - // Gtk-based styles do not apply the correct background color on tabs. - // As a workaround, use the Plastique style instead. - QStyle* fix = new QPlastiqueStyle(); - fix->setParent(this); - d->mHistoryWidget->tabBar()->setStyle(fix); - d->mPlacesTagsWidget->tabBar()->setStyle(fix); - } setFrameStyle(QFrame::NoFrame); // Bookmark view diff --git a/partitionmanager/src/gui/partwidget.cpp b/partitionmanager/src/gui/partwidget.cpp index 3e246e27..de0041e2 100644 --- a/partitionmanager/src/gui/partwidget.cpp +++ b/partitionmanager/src/gui/partwidget.cpp @@ -45,18 +45,6 @@ PartWidget::PartWidget(QWidget* parent, const Partition* p) : m_Active(false) { setFont(KGlobalSettings::smallestReadableFont()); - - // Check if user is running a GTK style; in that case, use plastique as a fallback - // style for the PartWidget to work around GTK styles not showing the FS colors - // correctly. - // Inspired by Aurélien Gâteau's similar workaround in Gwenview (230aebbd) - if (qstrcmp(QApplication::style()->metaObject()->className(), "QGtkStyle") == 0) - { - QStyle* style = new QPlastiqueStyle(); - style->setParent(this); - setStyle(style); - } - init(p); }