aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/usersurvey.cpp
diff options
context:
space:
mode:
authorGravatar Sergey Starosek <sergey.starosek@gmail.com>2014-07-16 11:58:01 +0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-16 09:11:04 -0700
commitb2a3e461848ba480229bf93a2d075608df997478 (patch)
tree1193d88a4ecd72f927a058b0f4550e7cbeaa00f0 /qt-ui/usersurvey.cpp
parent7eb422d98837b3cfb289a66fa0f3a8f78f222001 (diff)
downloadsubsurface-b2a3e461848ba480229bf93a2d075608df997478.tar.gz
Fix layout for User Survey
- apply vertical layout to top-level dialog. This solves label clipping - call adjustSize() on dialog to fit all labels (translated text could be longer than original) Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/usersurvey.cpp')
-rw-r--r--qt-ui/usersurvey.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/usersurvey.cpp b/qt-ui/usersurvey.cpp
index 317788626..997064042 100644
--- a/qt-ui/usersurvey.cpp
+++ b/qt-ui/usersurvey.cpp
@@ -16,6 +16,7 @@ UserSurvey::UserSurvey(QWidget *parent) : QDialog(parent),
{
QString osArch, arch;
ui->setupUi(this);
+ this->adjustSize();
QShortcut *closeKey = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), this);
connect(closeKey, SIGNAL(activated()), this, SLOT(close()));
QShortcut *quitKey = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), this);