summaryrefslogtreecommitdiff
path: root/src/frontend/btopenworkaction.cpp
diff options
context:
space:
mode:
authorDavid Sanders <david@sandersweb.net>2014-10-09 12:41:00 +0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-10-21 22:58:58 -0400
commitc04698777033d5a61b2609a45c07d3c139750604 (patch)
treee19e4ae01b98de59acfe4ae2df308eabf7cb2180 /src/frontend/btopenworkaction.cpp
parentd40aeea533995281ebf64c52e69340764de6f3d9 (diff)
parent1ea03c0fce8066c1e22188447b4a6ca4dcef1201 (diff)
Imported Debian patch 2.10.1-1
Diffstat (limited to 'src/frontend/btopenworkaction.cpp')
-rw-r--r--src/frontend/btopenworkaction.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/frontend/btopenworkaction.cpp b/src/frontend/btopenworkaction.cpp
index 50d0d5f..a398412 100644
--- a/src/frontend/btopenworkaction.cpp
+++ b/src/frontend/btopenworkaction.cpp
@@ -4,7 +4,7 @@
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2011 by the BibleTime developers.
+* Copyright 1999-2014 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License
* version 2.0.
*
@@ -14,8 +14,9 @@
#include "backend/bookshelfmodel/btbookshelffiltermodel.h"
#include "backend/managers/cswordbackend.h"
+#include "bibletimeapp.h"
#include "frontend/btbookshelfgroupingmenu.h"
-#include "util/directory.h"
+#include "util/geticon.h"
BtOpenWorkActionMenu::BtOpenWorkActionMenu(const QString &groupingConfigKey,
@@ -33,10 +34,6 @@ BtOpenWorkActionMenu::BtOpenWorkActionMenu(const QString &groupingConfigKey,
this, SLOT(slotIndexTriggered(QModelIndex)));
}
-BtOpenWorkActionMenu::~BtOpenWorkActionMenu() {
- // Intentionally empty
-}
-
void BtOpenWorkActionMenu::setSourceModel(QAbstractItemModel *model) {
m_treeModel->setSourceModel(model);
}
@@ -81,7 +78,7 @@ BtOpenWorkAction::BtOpenWorkAction(const QString &groupingConfigKey,
m_menu->setSourceModel(CSwordBackend::instance()->model());
setMenu(m_menu);
- setIcon(util::directory::getIcon("folder-open.svg"));
+ setIcon(util::getIcon("folder-open.svg"));
retranslateUi();
slotModelChanged();