summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-22 21:25:05 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-22 21:31:45 -0700
commit115e5e5fbc5fcf190ceafaa2b800160cec93d52e (patch)
tree81f8308c48c11b7b3ff393ab35b3ae6999351d5c /qt-ui/maintab.cpp
parent775736395363ddfe65387b6e05d37546a4601ab9 (diff)
downloadsubsurface-115e5e5fbc5fcf190ceafaa2b800160cec93d52e.tar.gz
The never ending, futile fight for whitespace consistency
I just need to write a tool that does this... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index fd33457d9..6c3b61173 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -79,10 +79,10 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
connect(ui->cylinders, SIGNAL(clicked(QModelIndex)), ui->cylinders->model(), SLOT(remove(QModelIndex)));
connect(ui->weights, SIGNAL(clicked(QModelIndex)), ui->weights->model(), SLOT(remove(QModelIndex)));
- ui->cylinders->setColumnWidth( CylindersModel::REMOVE, 24);
+ ui->cylinders->setColumnWidth(CylindersModel::REMOVE, 24);
ui->cylinders->horizontalHeader()->setResizeMode (CylindersModel::REMOVE , QHeaderView::Fixed);
ui->cylinders->setItemDelegateForColumn(CylindersModel::TYPE, new TankInfoDelegate());
- ui->weights->setColumnWidth( WeightModel::REMOVE, 24);
+ ui->weights->setColumnWidth(WeightModel::REMOVE, 24);
ui->cylinders->horizontalHeader()->setResizeMode (WeightModel::REMOVE , QHeaderView::Fixed);
}
@@ -90,19 +90,19 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
void MainTab::resizeEvent(QResizeEvent* event)
{
if (ui->cylindersGroup->isVisible())
- addCylinder->setGeometry( ui->cylindersGroup->contentsRect().width() - 30, 2, 24,24);
+ addCylinder->setGeometry(ui->cylindersGroup->contentsRect().width() - 30, 2, 24,24);
if (ui->weightGroup->isVisible())
- addWeight->setGeometry( ui->weightGroup->contentsRect().width() - 30, 2, 24,24);
+ addWeight->setGeometry(ui->weightGroup->contentsRect().width() - 30, 2, 24,24);
- QTabWidget::resizeEvent(event);
+ QTabWidget::resizeEvent(event);
}
void MainTab::showEvent(QShowEvent* event)
{
QTabWidget::showEvent(event);
- addCylinder->setGeometry( ui->cylindersGroup->contentsRect().width() - 30, 2, 24,24);
- addWeight->setGeometry( ui->weightGroup->contentsRect().width() - 30, 2, 24,24);
+ addCylinder->setGeometry(ui->cylindersGroup->contentsRect().width() - 30, 2, 24,24);
+ addWeight->setGeometry(ui->weightGroup->contentsRect().width() - 30, 2, 24,24);
}