diff --git a/include/RenameDialog.h b/include/RenameDialog.h index 8c857e15d..5470455d8 100644 --- a/include/RenameDialog.h +++ b/include/RenameDialog.h @@ -43,6 +43,7 @@ public: protected: void keyPressEvent( QKeyEvent * _ke ); + virtual void resizeEvent(QResizeEvent * event); protected slots: @@ -58,4 +59,3 @@ private: #endif - diff --git a/src/gui/SetupDialog.cpp b/src/gui/SetupDialog.cpp index 18969d466..b894a0fe3 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 2e443f241..007d7fee0 100644 --- a/src/gui/widgets/RenameDialog.cpp +++ b/src/gui/widgets/RenameDialog.cpp @@ -36,6 +36,7 @@ RenameDialog::RenameDialog( QString & _string ) : m_originalString( _string ) { setWindowTitle( tr("Rename...") ); + setFixedHeight( 30 ); m_stringLE = new QLineEdit( this ); m_stringLE->setText( _string ); m_stringLE->setGeometry ( 10, 5, 220, 20 ); @@ -56,6 +57,13 @@ RenameDialog::~RenameDialog() +void RenameDialog::resizeEvent (QResizeEvent * event) { + m_stringLE->setGeometry ( 10, 5, width() - 20, 20 ); +} + + + + void RenameDialog::keyPressEvent( QKeyEvent * _ke ) { if( _ke->key() == Qt::Key_Escape ) @@ -72,9 +80,3 @@ void RenameDialog::textChanged( const QString & _new_string ) { m_stringToEdit = _new_string; } - - - - - -