summaryrefslogtreecommitdiffstats
path: root/qt-ui/tableview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/tableview.cpp')
-rw-r--r--qt-ui/tableview.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/qt-ui/tableview.cpp b/qt-ui/tableview.cpp
index 6956d3941..88a9c3fb9 100644
--- a/qt-ui/tableview.cpp
+++ b/qt-ui/tableview.cpp
@@ -3,6 +3,7 @@
#include "models.h"
#include <QPushButton>
+#include <QLayout>
#include <QFile>
#include <QTextStream>
#include <QSettings>
@@ -14,11 +15,16 @@ TableView::TableView(QWidget *parent) : QWidget(parent), ui(new Ui::TableView){
QTextStream reader(&cssFile);
QString css = reader.readAll();
ui->tableView->setStyleSheet(css);
-
+ /* There`s mostly a need for a Mac fix here too. */
+ if (qApp->style()->objectName() == "gtk+")
+ ui->groupBox->layout()->setContentsMargins(0, 9, 0, 0);
+ else
+ ui->groupBox->layout()->setContentsMargins(0, 0, 0, 0);
QIcon plusIcon(":plus");
plusBtn = new QPushButton(plusIcon, QString(), ui->groupBox);
plusBtn->setFlat(true);
plusBtn->setToolTip(tr("Add Cylinder"));
+ plusBtn->setIconSize(QSize(16,16));
connect(plusBtn, SIGNAL(clicked(bool)), this, SIGNAL(addButtonClicked()));
}