Commit d50da5f0 authored by Volker Krause's avatar Volker Krause
Browse files

Opaque resizing is defined by the style nowadays.

parent 759c5dd8
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
#include <KCalendarSystem> #include <KCalendarSystem>
#include <KIconLoader> // for SmallIcon() #include <KIconLoader> // for SmallIcon()
#include <KGlobalSettings>
#include <KHBox> #include <KHBox>
#include <KMessageBox> #include <KMessageBox>
#include <KServiceTypeTrader> #include <KServiceTypeTrader>
...@@ -736,7 +735,6 @@ void AgendaView::init(const QDate &start, const QDate &end) ...@@ -736,7 +735,6 @@ void AgendaView::init(const QDate &start, const QDate &end)
/* Create agenda splitter */ /* Create agenda splitter */
d->mSplitterAgenda = new QSplitter(Qt::Vertical, this); d->mSplitterAgenda = new QSplitter(Qt::Vertical, this);
d->mGridLayout->addWidget(d->mSplitterAgenda, 1, 0); d->mGridLayout->addWidget(d->mSplitterAgenda, 1, 0);
d->mSplitterAgenda->setOpaqueResize(KGlobalSettings::opaqueResize());
/* Create day name labels for agenda columns */ /* Create day name labels for agenda columns */
d->mTopDayLabelsFrame = new KHBox(d->mSplitterAgenda); d->mTopDayLabelsFrame = new KHBox(d->mSplitterAgenda);
......
...@@ -38,7 +38,6 @@ using namespace KPIM; ...@@ -38,7 +38,6 @@ using namespace KPIM;
#include <KCalCore/Event> #include <KCalCore/Event>
#include <KCheckableProxyModel> #include <KCheckableProxyModel>
#include <KGlobalSettings>
#include <KLocalizedString> #include <KLocalizedString>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <KViewStateMaintainer> #include <KViewStateMaintainer>
...@@ -162,7 +161,6 @@ MultiAgendaView::MultiAgendaView(QWidget *parent) ...@@ -162,7 +161,6 @@ MultiAgendaView::MultiAgendaView(QWidget *parent)
d->mLeftSplitter = new QSplitter(Qt::Vertical, topSideBox); d->mLeftSplitter = new QSplitter(Qt::Vertical, topSideBox);
topSideBoxVBoxLayout->addWidget(d->mLeftSplitter); topSideBoxVBoxLayout->addWidget(d->mLeftSplitter);
d->mLeftSplitter->setOpaqueResize(KGlobalSettings::opaqueResize());
d->mLabel = new QLabel(i18n("All Day"), d->mLeftSplitter); d->mLabel = new QLabel(i18n("All Day"), d->mLeftSplitter);
d->mLabel->setAlignment(Qt::AlignRight | Qt::AlignVCenter); d->mLabel->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
...@@ -214,7 +212,6 @@ MultiAgendaView::MultiAgendaView(QWidget *parent) ...@@ -214,7 +212,6 @@ MultiAgendaView::MultiAgendaView(QWidget *parent)
d->mRightSplitter = new QSplitter(Qt::Vertical, topSideBox); d->mRightSplitter = new QSplitter(Qt::Vertical, topSideBox);
topSideBoxVBoxLayout->addWidget(d->mRightSplitter); topSideBoxVBoxLayout->addWidget(d->mRightSplitter);
d->mRightSplitter->setOpaqueResize(KGlobalSettings::opaqueResize());
connect(d->mLeftSplitter, &QSplitter::splitterMoved, this, &MultiAgendaView::resizeSplitters); connect(d->mLeftSplitter, &QSplitter::splitterMoved, this, &MultiAgendaView::resizeSplitters);
connect(d->mRightSplitter, &QSplitter::splitterMoved, this, &MultiAgendaView::resizeSplitters); connect(d->mRightSplitter, &QSplitter::splitterMoved, this, &MultiAgendaView::resizeSplitters);
......
...@@ -619,7 +619,6 @@ void KMMainWidget::layoutSplitters() ...@@ -619,7 +619,6 @@ void KMMainWidget::layoutSplitters()
// The folder view is both the folder tree and the favorite folder view, if // The folder view is both the folder tree and the favorite folder view, if
// enabled // enabled
const bool opaqueResize = KGlobalSettings::opaqueResize();
const bool readerWindowAtSide = !mReaderWindowBelow && mReaderWindowActive; const bool readerWindowAtSide = !mReaderWindowBelow && mReaderWindowActive;
const bool readerWindowBelow = mReaderWindowBelow && mReaderWindowActive; const bool readerWindowBelow = mReaderWindowBelow && mReaderWindowActive;
...@@ -629,7 +628,6 @@ void KMMainWidget::layoutSplitters() ...@@ -629,7 +628,6 @@ void KMMainWidget::layoutSplitters()
QWidget *folderTreeWidget = mSearchAndTree; QWidget *folderTreeWidget = mSearchAndTree;
if (mFavoriteCollectionsView) { if (mFavoriteCollectionsView) {
mFolderViewSplitter = new QSplitter(Qt::Vertical); mFolderViewSplitter = new QSplitter(Qt::Vertical);
mFolderViewSplitter->setOpaqueResize(opaqueResize);
//mFolderViewSplitter->setChildrenCollapsible( false ); //mFolderViewSplitter->setChildrenCollapsible( false );
mFolderViewSplitter->addWidget(mFavoriteCollectionsView); mFolderViewSplitter->addWidget(mFavoriteCollectionsView);
mFavoriteCollectionsView->setParent(mFolderViewSplitter); mFavoriteCollectionsView->setParent(mFolderViewSplitter);
...@@ -685,10 +683,8 @@ void KMMainWidget::layoutSplitters() ...@@ -685,10 +683,8 @@ void KMMainWidget::layoutSplitters()
// Set splitter properties // Set splitter properties
// //
mSplitter1->setObjectName(QStringLiteral("splitter1")); mSplitter1->setObjectName(QStringLiteral("splitter1"));
mSplitter1->setOpaqueResize(opaqueResize);
//mSplitter1->setChildrenCollapsible( false ); //mSplitter1->setChildrenCollapsible( false );
mSplitter2->setObjectName(QStringLiteral("splitter2")); mSplitter2->setObjectName(QStringLiteral("splitter2"));
mSplitter2->setOpaqueResize(opaqueResize);
//mSplitter2->setChildrenCollapsible( false ); //mSplitter2->setChildrenCollapsible( false );
// //
......
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
#include <KRun> #include <KRun>
#include <KSelectAction> #include <KSelectAction>
#include <KSharedConfigPtr> #include <KSharedConfigPtr>
#include <KGlobalSettings>
#include <KStandardGuiItem> #include <KStandardGuiItem>
#include <QTemporaryDir> #include <QTemporaryDir>
#include <QTemporaryFile> #include <QTemporaryFile>
...@@ -1596,7 +1595,6 @@ void ViewerPrivate::createWidgets() ...@@ -1596,7 +1595,6 @@ void ViewerPrivate::createWidgets()
#ifndef QT_NO_TREEVIEW #ifndef QT_NO_TREEVIEW
mSplitter->setStretchFactor(mSplitter->indexOf(mMimePartTree), 0); mSplitter->setStretchFactor(mSplitter->indexOf(mMimePartTree), 0);
#endif #endif
mSplitter->setOpaqueResize(KGlobalSettings::opaqueResize());
} }
void ViewerPrivate::createActions() void ViewerPrivate::createActions()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment