Skip to content

Commit

Permalink
Fix bad button position in setup dialog, make the SetupDialog and Eff…
Browse files Browse the repository at this point in the history
…ectDialog not resizeable
  • Loading branch information
Umcaruje committed Jan 31, 2016
1 parent f528e3d commit f0a0f7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
9 changes: 3 additions & 6 deletions src/gui/SetupDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1526,7 +1527,3 @@ void SetupDialog::displayMIDIHelp()
"controls to setup the selected "
"MIDI-interface." ) );
}




11 changes: 4 additions & 7 deletions src/gui/widgets/RenameDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 & ) ) );
Expand Down Expand Up @@ -72,9 +75,3 @@ void RenameDialog::textChanged( const QString & _new_string )
{
m_stringToEdit = _new_string;
}






0 comments on commit f0a0f7c

Please sign in to comment.