diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-03-31 14:50:43 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-04-01 09:50:55 (GMT) |
commit | eeb83668baf0f396f60882976437299746372217 (patch) | |
tree | 271a4277b8bf595cc640749f5d067daf624df292 /tools | |
parent | a5386aa328260157368877b44f2d8d40871f02cf (diff) | |
download | Qt-eeb83668baf0f396f60882976437299746372217.zip Qt-eeb83668baf0f396f60882976437299746372217.tar.gz Qt-eeb83668baf0f396f60882976437299746372217.tar.bz2 |
normalize file names
makes tool tips less ugly
Task-number: 246114
Diffstat (limited to 'tools')
-rw-r--r-- | tools/linguist/linguist/formpreviewview.cpp | 2 | ||||
-rw-r--r-- | tools/linguist/linguist/mainwindow.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/linguist/linguist/formpreviewview.cpp b/tools/linguist/linguist/formpreviewview.cpp index 990414b..184f01b 100644 --- a/tools/linguist/linguist/formpreviewview.cpp +++ b/tools/linguist/linguist/formpreviewview.cpp @@ -473,7 +473,7 @@ void FormPreviewView::setSourceContext(int model, MessageItem *messageItem) } QDir dir = QFileInfo(m_dataModel->srcFileName(model)).dir(); - QString fileName = dir.absoluteFilePath(messageItem->fileName()); + QString fileName = QDir::cleanPath(dir.absoluteFilePath(messageItem->fileName())); if (m_lastFormName != fileName) { delete m_form; m_form = 0; diff --git a/tools/linguist/linguist/mainwindow.cpp b/tools/linguist/linguist/mainwindow.cpp index 6ee0dd8..84200d4 100644 --- a/tools/linguist/linguist/mainwindow.cpp +++ b/tools/linguist/linguist/mainwindow.cpp @@ -1535,7 +1535,7 @@ void MainWindow::selectedMessageChanged(const QModelIndex &sortedIndex, const QM } else { m_sourceAndFormView->setCurrentWidget(m_sourceCodeView); QDir dir = QFileInfo(m_dataModel->srcFileName(model)).dir(); - QString fileName = dir.absoluteFilePath(m->fileName()); + QString fileName = QDir::cleanPath(dir.absoluteFilePath(m->fileName())); m_sourceCodeView->setSourceContext(fileName, m->lineNumber()); } m_errorsView->setEnabled(true); |