diff options
author | Kandrashin Denis <mail@lintest.ru> | 2013-06-04 00:13:19 +0400 |
---|---|---|
committer | Kandrashin Denis <mail@lintest.ru> | 2013-06-04 00:13:19 +0400 |
commit | 246bd0c7299019d51e8bbe7e6c5e345e751d5eb0 (patch) | |
tree | 1ab1370b7a4c2527238f36f35290ecfb39f92eb1 | |
parent | 29ad1304a22e0f867e903cdf9d78644eb4503f9f (diff) |
Small changes
-rw-r--r-- | source/fb2note.cpp | 1 | ||||
-rw-r--r-- | source/fb2utils.cpp | 13 |
2 files changed, 2 insertions, 12 deletions
diff --git a/source/fb2note.cpp b/source/fb2note.cpp index bf833c2..4c6efa7 100644 --- a/source/fb2note.cpp +++ b/source/fb2note.cpp @@ -45,6 +45,7 @@ FbNoteDlg::FbNoteDlg(FbTextBase *text) gridLayout->addWidget(m_title, 1, 1, 1, 1);
m_toolbar = new QToolBar(this);
+ m_toolbar->setIconSize(QSize(24, 24));
gridLayout->addWidget(m_toolbar, 2, 0, 1, 2);
QFrame * frame = new QFrame(this);
diff --git a/source/fb2utils.cpp b/source/fb2utils.cpp index 85a6283..72eefa2 100644 --- a/source/fb2utils.cpp +++ b/source/fb2utils.cpp @@ -22,18 +22,7 @@ FbIcon::FbIcon(const QString &name) QString jScript(const QString &filename) { -#ifdef QT_DEBUG - QString filepath = qApp->arguments().first(); - #ifdef Q_OS_WIN - filepath += "/.."; - #endif - filepath += "/../../fb2edit/source/js/"; - filepath += filename; - filepath = QDir::cleanPath(filepath); -#else - QString filepath = ":/js/"; - filepath += filename; -#endif // QT_DEBUG + QString filepath = ":/js/" + filename; // TODO: throw an exception instead of // returning an empty string |