diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-04-18 09:57:30 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-04-18 09:57:30 +0000 |
| commit | df94640f1ebab9b2ff502715643fdc00ba4c41af (patch) | |
| tree | f2de47dd822dda739d80d29a9f9e7fa95939a3c2 /src/plugins/FileDialogs/QmmpFileDialog/qmmpfiledialogimpl.cpp | |
| parent | 8f9437537982dcf8c3db00da6de53a20997ec315 (diff) | |
| download | qmmp-df94640f1ebab9b2ff502715643fdc00ba4c41af.tar.gz qmmp-df94640f1ebab9b2ff502715643fdc00ba4c41af.tar.bz2 qmmp-df94640f1ebab9b2ff502715643fdc00ba4c41af.zip | |
fixed build with Qt-4.3
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@912 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/FileDialogs/QmmpFileDialog/qmmpfiledialogimpl.cpp')
| -rw-r--r-- | src/plugins/FileDialogs/QmmpFileDialog/qmmpfiledialogimpl.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/FileDialogs/QmmpFileDialog/qmmpfiledialogimpl.cpp b/src/plugins/FileDialogs/QmmpFileDialog/qmmpfiledialogimpl.cpp index 62f2c4ced..ef183d715 100644 --- a/src/plugins/FileDialogs/QmmpFileDialog/qmmpfiledialogimpl.cpp +++ b/src/plugins/FileDialogs/QmmpFileDialog/qmmpfiledialogimpl.cpp @@ -1,5 +1,5 @@ /************************************************************************** -* Copyright (C) 2008 by Ilya Kotov * +* Copyright (C) 2008-2009 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -125,7 +125,9 @@ void QmmpFileDialogImpl::on_lookInComboBox_activated(const QString &path) { fileListView->setRootIndex(m_model->index(path)); treeView->setRootIndex(m_model->index(path)); +#if QT_VERSION >= 0x040400 m_model->setRootPath(path); +#endif } } @@ -137,7 +139,9 @@ void QmmpFileDialogImpl::on_upToolButton_clicked() treeView->setRootIndex(fileListView->rootIndex()); lookInComboBox->setEditText(m_model->filePath(fileListView->rootIndex())); fileListView->selectionModel()->clear (); +#if QT_VERSION >= 0x040400 m_model->setRootPath(m_model->filePath(treeView->rootIndex())); +#endif } void QmmpFileDialogImpl::on_treeView_doubleClicked(const QModelIndex& ind) @@ -152,7 +156,9 @@ void QmmpFileDialogImpl::on_treeView_doubleClicked(const QModelIndex& ind) treeView->selectionModel()->clear (); fileListView->setRootIndex(ind); fileListView->selectionModel()->clear (); +#if QT_VERSION >= 0x040400 m_model->setRootPath(m_model->filePath(ind)); +#endif } else { @@ -176,7 +182,9 @@ void QmmpFileDialogImpl::on_fileListView_doubleClicked(const QModelIndex& ind) fileListView->selectionModel()->clear (); treeView->setRootIndex(ind); treeView->selectionModel()->clear (); +#if QT_VERSION >= 0x040400 m_model->setRootPath(m_model->filePath(ind)); +#endif } else { |
