[vlmc-devel] commit: gui: add path completion to the export dialog (Ludovic Fauvet )
git at videolan.org
git at videolan.org
Sat Mar 20 01:34:52 CET 2010
vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Sat Mar 20 00:53:59 2010 +0100| [cb0dcde09f795fb891128d86e7fe3df8a997df16] | committer: Ludovic Fauvet
gui: add path completion to the export dialog
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=cb0dcde09f795fb891128d86e7fe3df8a997df16
---
src/Gui/export/RendererSettings.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/Gui/export/RendererSettings.cpp b/src/Gui/export/RendererSettings.cpp
index 2710b82..f242f23 100644
--- a/src/Gui/export/RendererSettings.cpp
+++ b/src/Gui/export/RendererSettings.cpp
@@ -27,6 +27,8 @@
#include <QFileDialog>
#include <QMessageBox>
+#include <QCompleter>
+#include <QDirModel>
RendererSettings::RendererSettings()
{
@@ -37,6 +39,10 @@ RendererSettings::RendererSettings()
m_ui.width->setValue( VLMC_PROJECT_GET_INT( "video/VideoProjectWidth" ) );
m_ui.height->setValue( VLMC_PROJECT_GET_INT( "video/VideoProjectHeight" ) );
m_ui.fps->setValue( VLMC_PROJECT_GET_DOUBLE( "video/VLMCOutputFPS" ) );
+
+ QCompleter* completer = new QCompleter( this );
+ completer->setModel( new QDirModel( completer ) );
+ m_ui.outputFileName->setCompleter( completer );
}
void
More information about the Vlmc-devel
mailing list