From a44ce72b0a421415637bc9ce0d9955fd7cb885f0 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 19 Oct 2008 21:47:26 +0000 Subject: [PATCH] initially select whole string so it can be overwritten easily git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1782 0778d3d1-df1d-0410-868b-ea421aaaa00d --- src/gui/widgets/rename_dialog.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gui/widgets/rename_dialog.cpp b/src/gui/widgets/rename_dialog.cpp index 2f45a407e..7365f3c7f 100644 --- a/src/gui/widgets/rename_dialog.cpp +++ b/src/gui/widgets/rename_dialog.cpp @@ -1,9 +1,7 @@ -#ifndef SINGLE_SOURCE_COMPILE - /* * rename_dialog.cpp - implementation of dialog for renaming something * - * Copyright (c) 2004-2006 Tobias Doerffel + * Copyright (c) 2004-2008 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -41,6 +39,7 @@ renameDialog::renameDialog( QString & _string ) : m_stringLE = new QLineEdit( this ); m_stringLE->setText( _string ); m_stringLE->setGeometry ( 10, 5, 220, 20 ); + m_stringLE->selectAll(); connect( m_stringLE, SIGNAL( textChanged( const QString & ) ), this, SLOT( textChanged( const QString & ) ) ); connect( m_stringLE, SIGNAL( returnPressed() ), this, @@ -79,5 +78,3 @@ void renameDialog::textChanged( const QString & _new_string ) #include "moc_rename_dialog.cxx" - -#endif