summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-30 11:30:23 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-30 11:30:23 -0300
commitbd6dfa1ebd790469fa77d220e6eea8cd11cff848 (patch)
treeeef780065e56566beb9739a545c32973aaacb4c6 /qt-ui/maintab.cpp
parent533d18e069073ede64d217cca5e5a4172a914a10 (diff)
downloadsubsurface-bd6dfa1ebd790469fa77d220e6eea8cd11cff848.tar.gz
Align Labels on center.
There was already a code for that on the maintab.cpp, but since I moved all labels to groupboxes, the code stopped working, and I tougth it'd better to kill the code since it's faster and safer to use the interface builder for that. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index ca2f18ef0..1de80271e 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -48,13 +48,6 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
ui->rating->installEventFilter(this);
ui->visibility->installEventFilter(this);
- /* example of where code is more concise than Qt designer */
- QList<QObject *> infoTabWidgets = ui->infoTab->children();
- Q_FOREACH(QObject* obj, infoTabWidgets) {
- QLabel* label = qobject_cast<QLabel *>(obj);
- if (label)
- label->setAlignment(Qt::AlignHCenter);
- }
QList<QObject *> statisticsTabWidgets = ui->statisticsTab->children();
Q_FOREACH(QObject* obj, statisticsTabWidgets) {
QLabel* label = qobject_cast<QLabel *>(obj);