diff --git a/src/plugins/TabManager/TabManager.pro b/src/plugins/TabManager/TabManager.pro
index 7ede630bf..a80a2feac 100644
--- a/src/plugins/TabManager/TabManager.pro
+++ b/src/plugins/TabManager/TabManager.pro
@@ -6,13 +6,13 @@ SOURCES += tabmanagerplugin.cpp \
tabmanagerwidget.cpp \
tabmanagerwidgetcontroller.cpp \
tabmanagersettings.cpp \
- tabfilterdelegate.cpp
+ tabmanagerdelegate.cpp
HEADERS += tabmanagerplugin.h \
tabmanagerwidget.h \
tabmanagerwidgetcontroller.h \
tabmanagersettings.h \
- tabfilterdelegate.h
+ tabmanagerdelegate.h
RESOURCES += tabmanagerplugin.qrc
diff --git a/src/plugins/TabManager/tabfilterdelegate.cpp b/src/plugins/TabManager/tabmanagerdelegate.cpp
similarity index 97%
rename from src/plugins/TabManager/tabfilterdelegate.cpp
rename to src/plugins/TabManager/tabmanagerdelegate.cpp
index df19be648..62e7232cd 100644
--- a/src/plugins/TabManager/tabfilterdelegate.cpp
+++ b/src/plugins/TabManager/tabmanagerdelegate.cpp
@@ -16,19 +16,19 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
* ============================================================ */
-#include "tabfilterdelegate.h"
+#include "tabmanagerdelegate.h"
#include
#include
#include
-TabFilterDelegate::TabFilterDelegate(QObject* parent)
+TabManagerDelegate::TabManagerDelegate(QObject* parent)
: QStyledItemDelegate(parent)
{
}
// most of codes taken from QCommonStyle::drawControl() and add our custom text drawer
-void TabFilterDelegate::paint(QPainter* painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
+void TabManagerDelegate::paint(QPainter* painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
QStyleOptionViewItem opt = option;
initStyleOption(&opt, index);
@@ -156,7 +156,7 @@ static QSizeF viewItemTextLayout(QTextLayout &textLayout, int lineWidth)
// most of codes taken from QCommonStylePrivate::viewItemDrawText()
// added highlighting and simplified for single-line textlayouts
-void TabFilterDelegate::viewItemDrawText(QPainter *p, const QStyleOptionViewItem *option, const QRect &rect,
+void TabManagerDelegate::viewItemDrawText(QPainter *p, const QStyleOptionViewItem *option, const QRect &rect,
const QString &text, const QColor &color, const QString &searchText) const
{
if (text.isEmpty()) {
diff --git a/src/plugins/TabManager/tabfilterdelegate.h b/src/plugins/TabManager/tabmanagerdelegate.h
similarity index 86%
rename from src/plugins/TabManager/tabfilterdelegate.h
rename to src/plugins/TabManager/tabmanagerdelegate.h
index f41bb88e6..5b76db256 100644
--- a/src/plugins/TabManager/tabfilterdelegate.h
+++ b/src/plugins/TabManager/tabmanagerdelegate.h
@@ -15,15 +15,15 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
* ============================================================ */
-#ifndef TABFILTERDELEGATE_H
-#define TABFILTERDELEGATE_H
+#ifndef TABMANAGERDELEGATE_H
+#define TABMANAGERDELEGATE_H
#include
-class TabFilterDelegate : public QStyledItemDelegate
+class TabManagerDelegate : public QStyledItemDelegate
{
public:
- explicit TabFilterDelegate(QObject* parent = 0);
+ explicit TabManagerDelegate(QObject* parent = 0);
void paint(QPainter* painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
@@ -36,4 +36,4 @@ private:
};
-#endif // TABFILTERDELEGATE_H
+#endif // TABMANAGERDELEGATE_H
diff --git a/src/plugins/TabManager/tabmanagerwidget.cpp b/src/plugins/TabManager/tabmanagerwidget.cpp
index 46349c086..59a8ec09d 100644
--- a/src/plugins/TabManager/tabmanagerwidget.cpp
+++ b/src/plugins/TabManager/tabmanagerwidget.cpp
@@ -29,7 +29,7 @@
#include "bookmarks.h"
#include "tabmanagerplugin.h"
#include "tldextractor/tldextractor.h"
-#include "tabfilterdelegate.h"
+#include "tabmanagerdelegate.h"
#include
@@ -79,7 +79,7 @@ TabManagerWidget::TabManagerWidget(BrowserWindow* mainClass, QWidget* parent, bo
ui->filterBar->addWidget(closeButton, LineEdit::RightSide);
ui->filterBar->hide();
- ui->treeWidget->setItemDelegate(new TabFilterDelegate(ui->treeWidget));
+ ui->treeWidget->setItemDelegate(new TabManagerDelegate(ui->treeWidget));
connect(closeButton, SIGNAL(clicked(bool)), this, SLOT(filterBarClosed()));
connect(ui->filterBar, SIGNAL(textChanged(QString)), this, SLOT(filterChanged(QString)));