[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdesdk/kapptemplate/kpartapp
From: David Faure <faure () kde ! org>
Date: 2002-12-10 17:50:07
[Download RAW message or body]
CVS commit by faure:
We support network transparency, so use KFileDialog::getOpenURL instead of
getOpenFileName.
M +5 -5 app.cpp 1.9
--- kdesdk/kapptemplate/kpartapp/app.cpp #1.8:1.9
@@ -173,8 +173,8 @@ void ${APP_NAME}::fileOpen()
// the Open shortcut is pressed (usually CTRL+O) or the Open toolbar
// button is clicked
- QString file_name =
- KFileDialog::getOpenFileName( QString::null, QString::null, this );
+ KURL url =
+ KFileDialog::getOpenURL( QString::null, QString::null, this );
- if (file_name.isEmpty() == false)
+ if (url.isEmpty() == false)
{
// About this function, the style guide (
@@ -185,5 +185,5 @@ void ${APP_NAME}::fileOpen()
{
// we open the file in this window...
- load( KURL( file_name ) );
+ load( url );
}
else
@@ -191,5 +191,5 @@ void ${APP_NAME}::fileOpen()
// we open the file in a new window...
${APP_NAME}* newWin = new ${APP_NAME};
- newWin->load( KURL( file_name ) );
+ newWin->load( url );
newWin->show();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic