Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
SDK
KDiff3
Commits
d0408b6f
Commit
d0408b6f
authored
Sep 04, 2016
by
Michael Reeves
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*QFileDialog::getExistingDirectoryUrl uses a less dated UI.
*scrat unneeded code.
parent
4b1e03e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
src/smalldialogs.cpp
src/smalldialogs.cpp
+0
-25
No files found.
src/smalldialogs.cpp
View file @
d0408b6f
...
...
@@ -236,31 +236,6 @@ void OpenDialog::selectURL( QComboBox* pLine, bool bDir, int i, bool bSave ) {
QUrl
newURL
=
bDir
?
QFileDialog
::
getExistingDirectoryUrl
(
this
,
QString
(),
current
)
:
bSave
?
QFileDialog
::
getSaveFileUrl
(
this
,
QString
(),
current
,
"all/allfiles"
)
:
QFileDialog
::
getOpenFileUrl
(
this
,
QString
(),
current
,
"all/allfiles"
);
/*QUrl newURL;
if( !bDir ) {
newURL = bSave ? QFileDialog::getSaveFileUrl( this, QString(), current, "all/allfiles" )
: QFileDialog::getOpenFileUrl( this, QString(), current, "all/allfiles" );
}
else {
KFileDialog dlg( current, "all/allfiles", this );
//Sadlly KFileDialog::getExistingDirectoryUrl doesn't do this. Instead it presents a very akword windows 95 like interface.
dlg.setOperationMode( KFileDialog::Opening );
dlg.setMode( KFile::Directory | KFile::ExistingOnly );
dlg.setWindowTitle( i18n( "Select Directory" ) );
dlg.exec();
newURL = dlg.selectedUrl();
}*/
/*if( !newURL.isEmpty() ) {
/*
Since we are selecting a directory open in the parent directory
not the one selected.
*
QFileDialog::setStartDir( KIO::upUrl( newURL ) );
pLine->setEditText( newURL.url() );
}*/
// newURL won't be modified if nothing was selected.
}
void
OpenDialog
::
selectFileA
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment