Browse Source

Small changes

Kandrashin Denis 12 years ago
parent
commit
246bd0c729
2 changed files with 2 additions and 12 deletions
  1. 1 0
      source/fb2note.cpp
  2. 1 12
      source/fb2utils.cpp

+ 1 - 0
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);

+ 1 - 12
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