From a9a851d2f02b1e5585769550e8df776668246a2b Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Fri, 21 Nov 2014 16:29:32 +0100 Subject: [PATCH] About dialog: Move involved tab into .ui file --- src/gui/about_dialog.cpp | 15 +-- src/gui/dialogs/about_dialog.ui | 178 +++++++++++++++++++------------- 2 files changed, 105 insertions(+), 88 deletions(-) diff --git a/src/gui/about_dialog.cpp b/src/gui/about_dialog.cpp index 9eee88cc8..61102109d 100644 --- a/src/gui/about_dialog.cpp +++ b/src/gui/about_dialog.cpp @@ -52,18 +52,5 @@ aboutDialog::aboutDialog() : licenseLabel->setPlainText( embed::getText( "COPYING" ) ); - QString contText = embed::getText( "CONTRIBUTORS" ); - if ( contText.length() >= 2 ) - { - QWidget *widget = new QWidget(); - QVBoxLayout *layout = new QVBoxLayout(); - QTextEdit *contWidget = new QTextEdit(); - contWidget->setReadOnly(true); - contWidget->setText( contText ); - - layout->addWidget( new QLabel( tr("Contributors ordered by number of commits:"), this ) ); - layout->addWidget( contWidget ); - widget->setLayout( layout ); - tabWidget->insertTab( 2, widget, tr("Involved") ); - } + involvedLabel->setPlainText( embed::getText( "CONTRIBUTORS" ) ); } diff --git a/src/gui/dialogs/about_dialog.ui b/src/gui/dialogs/about_dialog.ui index 2fdd91054..6d9a11337 100644 --- a/src/gui/dialogs/about_dialog.ui +++ b/src/gui/dialogs/about_dialog.ui @@ -1,8 +1,8 @@ - + AboutDialog - - + + 0 0 @@ -10,46 +10,55 @@ 357 - + About LMMS - - + + 8 - + + 8 + + + 8 + + + 8 + + 8 - + - - + + 64 64 - + - + - - - font:12pt; font-weight:bold; + + + font:12pt; font-weight:bold; - + LMMS - - + + Version %1 (%2/%3, Qt %4, %5) @@ -57,11 +66,11 @@ - - + + Qt::Horizontal - + 40 20 @@ -72,24 +81,24 @@ - - + + 0 - - + + About - + - - + + Qt::Vertical - + QSizePolicy::Fixed - + 20 10 @@ -98,24 +107,24 @@ - - + + LMMS - easy music production for everyone - + true - - + + Qt::Vertical - + QSizePolicy::Fixed - + 20 10 @@ -124,24 +133,24 @@ - - + + Copyright (c) 2004-2014, LMMS developers - + true - - + + Qt::Vertical - + QSizePolicy::Fixed - + 20 10 @@ -150,21 +159,21 @@ - - + + <html><head/><body><p><a href="http://lmms.io"><span style=" text-decoration: underline; color:#0000ff;">http://lmms.io</span></a></p></body></html> - + true - - + + Qt::Vertical - + 20 40 @@ -174,31 +183,52 @@ - - + + Authors - + - - + + true - - - Translation + + + Involved - + - - + + + Contributors ordered by number of commits: + + + + + + true - + + + + + + + Translation + + + + + + true + + Current language not translated (or native English). If you're interested in translating LMMS in another language or want to improve existing translations, you're welcome to help us! Simply contact the maintainer! @@ -207,14 +237,14 @@ If you're interested in translating LMMS in another language or want to improve - - + + License - + - - + + true @@ -224,11 +254,11 @@ If you're interested in translating LMMS in another language or want to improve - - + + Qt::Horizontal - + QDialogButtonBox::Close @@ -243,11 +273,11 @@ If you're interested in translating LMMS in another language or want to improve AboutDialog accept() - + 248 254 - + 157 274 @@ -259,11 +289,11 @@ If you're interested in translating LMMS in another language or want to improve AboutDialog reject() - + 316 260 - + 286 274