diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-10-27 20:10:16 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-10-27 20:10:16 (GMT) |
commit | d2aec1bac5dbf774dd640b36aa0a6d7c1288c570 (patch) | |
tree | 7b31e0941321a116a730c80e26726da9202178c3 /addon/doxywizard/inputstring.cpp | |
parent | a62d9f8f1c2c97d454ff33bc1a4911d1362d9766 (diff) | |
download | Doxygen-d2aec1bac5dbf774dd640b36aa0a6d7c1288c570.zip Doxygen-d2aec1bac5dbf774dd640b36aa0a6d7c1288c570.tar.gz Doxygen-d2aec1bac5dbf774dd640b36aa0a6d7c1288c570.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); - } + } } } |