diff options
Diffstat (limited to 'src/frontend/btbookshelfwidget.cpp')
-rw-r--r-- | src/frontend/btbookshelfwidget.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/frontend/btbookshelfwidget.cpp b/src/frontend/btbookshelfwidget.cpp index c4b0d54..2ce812e 100644 --- a/src/frontend/btbookshelfwidget.cpp +++ b/src/frontend/btbookshelfwidget.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. * @@ -24,6 +24,7 @@ #include <QToolButton> #include <QVBoxLayout> #include "backend/bookshelfmodel/btbookshelffiltermodel.h" +#include "bibletimeapp.h" #include "frontend/bookshelfmanager/installpage/btinstallmodulechooserdialogmodel.h" #include "frontend/bookshelfmanager/removepage/btremovepagetreemodel.h" #include "frontend/btbookshelfdockwidget.h" @@ -31,6 +32,7 @@ #include "frontend/btbookshelfview.h" #include "util/cresmgr.h" #include "util/directory.h" +#include "util/geticon.h" BtBookshelfWidget::BtBookshelfWidget(QWidget *parent, Qt::WindowFlags flags) @@ -61,10 +63,6 @@ BtBookshelfWidget::BtBookshelfWidget(QWidget *parent, Qt::WindowFlags flags) this, SLOT(slotShowItemContextMenu(CSwordModuleInfo*, QPoint))); } -BtBookshelfWidget::~BtBookshelfWidget() { - // Intentionally empty -} - void BtBookshelfWidget::setSourceModel(QAbstractItemModel *model) { Q_ASSERT(model != 0); m_sourceModel = model; @@ -96,11 +94,10 @@ void BtBookshelfWidget::setRightCornerWidget(QWidget *w) { } void BtBookshelfWidget::initActions() { - namespace DU = util::directory; namespace RM = CResMgr::mainIndex; m_showHideAction = new QAction(this); - m_showHideAction->setIcon(DU::getIcon("layer-visible-on.svg")); + m_showHideAction->setIcon(util::getIcon("layer-visible-on.svg")); m_showHideAction->setCheckable(true); connect(m_showHideAction, SIGNAL(toggled(bool)), m_postFilterModel, SLOT(setShowHidden(bool))); |