[yast-commit] r63531 - in /trunk/qt: VERSION.cmake package/yast2-qt.changes src/YQApplication.cc
Author: tgoettlicher Date: Tue Mar 8 16:22:14 2011 New Revision: 63531 URL: http://svn.opensuse.org/viewcvs/yast?rev=63531&view=rev Log: - Show block devices in file selection dialog (bnc #661685) - V 2.20.5 Modified: trunk/qt/VERSION.cmake trunk/qt/package/yast2-qt.changes trunk/qt/src/YQApplication.cc Modified: trunk/qt/VERSION.cmake URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/VERSION.cmake?rev=63531&r1=63530&r2=63531&view=diff ============================================================================== --- trunk/qt/VERSION.cmake (original) +++ trunk/qt/VERSION.cmake Tue Mar 8 16:22:14 2011 @@ -1,3 +1,3 @@ SET(VERSION_MAJOR "2") SET(VERSION_MINOR "20") -SET(VERSION_PATCH "4") +SET(VERSION_PATCH "5") Modified: trunk/qt/package/yast2-qt.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/package/yast2-qt.changes?rev=63531&r1=63530&r2=63531&view=diff ============================================================================== --- trunk/qt/package/yast2-qt.changes (original) +++ trunk/qt/package/yast2-qt.changes Tue Mar 8 16:22:14 2011 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Mar 8 16:19:49 CET 2011 - tgoettlicher@suse.de + +- Show block devices in file selection dialog (bnc #661685) +- V 2.20.5 + +------------------------------------------------------------------- Mon Feb 21 17:37:47 CET 2011 - tgoettlicher@suse.de - Fixed unselecting items for tree widget (bnc #673801) Modified: trunk/qt/src/YQApplication.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQApplication.cc?rev=63531&r1=63530&r2=63531&view=diff ============================================================================== --- trunk/qt/src/YQApplication.cc (original) +++ trunk/qt/src/YQApplication.cc Tue Mar 8 16:22:14 2011 @@ -516,12 +516,19 @@ { normalCursor(); - QString fileName = - QFileDialog::getOpenFileName( 0, // parent - fromUTF8( headline ) , // caption - fromUTF8( startWith ), // dir - fromUTF8( filter ), // filter - 0, QFileDialog::DontUseNativeDialog); + QFileDialog* dialog = new QFileDialog( 0, // parent + fromUTF8( headline ), // caption + fromUTF8( startWith ), // dir + fromUTF8( filter )); // filter + dialog->setFileMode( QFileDialog::ExistingFile ); + dialog->setFilter( QDir::System | dialog->filter() ); + dialog->setOptions( QFileDialog::DontUseNativeDialog ); + + QString fileName; + if( dialog->exec() == QDialog::Accepted ) + fileName = dialog->selectedFiles().value( 0 ); + delete dialog; + busyCursor(); return toUTF8( fileName ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
tgoettlicher@svn2.opensuse.org