summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-24 17:25:18 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-24 17:25:18 (GMT)
commit82cc716f709390a988aee23565070ba5cca8dc44 (patch)
treead718e5f649545e88739c84c3fb1086f9d1c0017
parent3a00f4e9c080e02f78c67c782ae921d876e19dd3 (diff)
Remove unnecessary build warning
spacingHint()/marginHint() just returned the defaults from QApplication even in kdelibs (4), so this code was useless. The direct port would look something like this: page2Layout->setMargin(QApplication::style()->pixelMetric(QStyle::PM_DefaultChildMargin);); page2Layout->setSpacing(QApplication::style()->pixelMetric(QStyle::PM_DefaultLayoutSpacing););
-rw-r--r--ui/propertiesdialog.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/ui/propertiesdialog.cpp b/ui/propertiesdialog.cpp
index c8a7798..369d857 100644
--- a/ui/propertiesdialog.cpp
+++ b/ui/propertiesdialog.cpp
@@ -135,9 +135,6 @@ PropertiesDialog::PropertiesDialog(QWidget *parent, Okular::Document *doc)
m_fontPage = addPage(page2, i18n("&Fonts"));
m_fontPage->setIcon( QIcon::fromTheme( QStringLiteral("preferences-desktop-font") ) );
page2Layout = new QVBoxLayout(page2);
-#pragma message("KF5 fix margin/spacing")
-// page2Layout->setMargin(marginHint());
-// page2Layout->setSpacing(spacingHint());
// add a tree view
QTreeView *view = new QTreeView(page2);
view->setContextMenuPolicy(Qt::CustomContextMenu);