From f0a0f7c17d71f404bc1be21274623360027389cd Mon Sep 17 00:00:00 2001 From: Umcaruje Date: Sun, 31 Jan 2016 21:54:39 +0100 Subject: [PATCH] Fix bad button position in setup dialog, make the SetupDialog and EffectDialog not resizeable --- src/gui/SetupDialog.cpp | 9 +++------ src/gui/widgets/RenameDialog.cpp | 11 ++++------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/gui/SetupDialog.cpp b/src/gui/SetupDialog.cpp index 18969d46666..b894a0fe3e8 100644 --- a/src/gui/SetupDialog.cpp +++ b/src/gui/SetupDialog.cpp @@ -140,6 +140,7 @@ SetupDialog::SetupDialog( ConfigTabs _tab_to_open ) : setWindowIcon( embed::getIconPixmap( "setup_general" ) ); setWindowTitle( tr( "Setup LMMS" ) ); setModal( true ); + setFixedSize( 452, 520 ); Engine::projectJournal()->setJournalling( false ); @@ -411,8 +412,8 @@ SetupDialog::SetupDialog( ConfigTabs _tab_to_open ) : pathScroll->move( 0, 30 ); pathSelectors->resize( 360, pathsHeight - 50 ); - const int txtLength = 285; - const int btnStart = 305; + const int txtLength = 284; + const int btnStart = 297; // working-dir @@ -1526,7 +1527,3 @@ void SetupDialog::displayMIDIHelp() "controls to setup the selected " "MIDI-interface." ) ); } - - - - diff --git a/src/gui/widgets/RenameDialog.cpp b/src/gui/widgets/RenameDialog.cpp index 2e443f241bb..254dc0ab868 100644 --- a/src/gui/widgets/RenameDialog.cpp +++ b/src/gui/widgets/RenameDialog.cpp @@ -35,10 +35,13 @@ RenameDialog::RenameDialog( QString & _string ) : m_stringToEdit( _string ), m_originalString( _string ) { + const int dialogWidth = 260; + setWindowTitle( tr("Rename...") ); + setFixedSize( dialogWidth, 30 ); m_stringLE = new QLineEdit( this ); m_stringLE->setText( _string ); - m_stringLE->setGeometry ( 10, 5, 220, 20 ); + m_stringLE->setGeometry ( 10, 5, dialogWidth - 20, 20 ); m_stringLE->selectAll(); connect( m_stringLE, SIGNAL( textChanged( const QString & ) ), this, SLOT( textChanged( const QString & ) ) ); @@ -72,9 +75,3 @@ void RenameDialog::textChanged( const QString & _new_string ) { m_stringToEdit = _new_string; } - - - - - -