diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2009-10-27 20:10:16 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2009-10-27 20:10:16 (GMT) |
commit | 0c751ba9f9a73ad649bf64cef4c9fdb82743b2f6 (patch) | |
tree | 7b31e0941321a116a730c80e26726da9202178c3 /addon/doxywizard/inputstring.cpp | |
parent | 1042ef3a191bd0f399f1a2a20fe259c14fe6faf9 (diff) | |
download | Doxygen-0c751ba9f9a73ad649bf64cef4c9fdb82743b2f6.zip Doxygen-0c751ba9f9a73ad649bf64cef4c9fdb82743b2f6.tar.gz Doxygen-0c751ba9f9a73ad649bf64cef4c9fdb82743b2f6.tar.bz2 |
Release-1.6.1-20091027
Diffstat (limited to 'addon/doxywizard/inputstring.cpp')
-rw-r--r-- | addon/doxywizard/inputstring.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/addon/doxywizard/inputstring.cpp b/addon/doxywizard/inputstring.cpp index 7b0aea0..58ace8b 100644 --- a/addon/doxywizard/inputstring.cpp +++ b/addon/doxywizard/inputstring.cpp @@ -21,8 +21,10 @@ InputString::InputString( QGridLayout *layout,int &row, const QString & id, const QString &s, - StringMode m, const QString &docs ) - : m_default(s), m_sm(m), m_index(0), m_docs(docs), m_id(id) + StringMode m, const QString &docs, + const QString &absPath ) + : m_default(s), m_sm(m), m_index(0), m_docs(docs), m_id(id), + m_absPath(absPath==QString::fromAscii("1")) { m_lab = new HelpLabel(id); if (m==StringFixed) @@ -126,7 +128,7 @@ void InputString::browse() QDir dir(path); if (!MainWindow::instance().configFileName().isEmpty() && dir.exists()) { - fileName = dir.relativeFilePath(fileName); + fileName = m_absPath ? fileName : dir.relativeFilePath(fileName); } setValue(fileName); } @@ -140,10 +142,10 @@ void InputString::browse() QDir dir(path); if (!MainWindow::instance().configFileName().isEmpty() && dir.exists()) { - dirName = dir.relativeFilePath(dirName); + dirName = m_absPath ? dirName : dir.relativeFilePath(dirName); } setValue(dirName); - } + } } } |