Skip to content

Commit

Permalink
Refactor to use QmlUtilities::qmlDir().
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed May 6, 2014
1 parent 506a899 commit 5bd6a2f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/htmleditor/htmleditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include "ui_htmleditor.h"
#include "ui_inserthtmldialog.h"
#include "qmltypes/qmlutilities.h"

#include <QtWidgets>
#include <QtWebKitWidgets>
Expand Down Expand Up @@ -371,13 +372,7 @@ bool HtmlEditor::queryCommandState(const QString &cmd)

QString HtmlEditor::qmlFilePath(const QString &fileName)
{
QDir dir(qApp->applicationDirPath());
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
dir.cdUp();
#endif
dir.cd("share");
dir.cd("shotcut");
dir.cd("qml");
QDir dir = QmlUtilities::qmlDir();
dir.cd("htmleditor");
return dir.absoluteFilePath(fileName);
}
Expand Down

0 comments on commit 5bd6a2f

Please sign in to comment.