gwenview: remove redudant tag code

This commit is contained in:
Ivailo Monev 2015-01-30 23:33:08 +00:00
parent 7640d57d72
commit 442f11ec1b
3 changed files with 0 additions and 48 deletions

View file

@ -98,8 +98,6 @@ struct StartMainPagePrivate : public Ui_StartMainPage
void setupSearchUi()
{
mTagView->hide();
mTagLabel->hide();
}
void updateHistoryTab()
@ -157,10 +155,6 @@ StartMainPage::StartMainPage(QWidget* parent, GvCore* gvCore)
connect(d->mBookmarksView, SIGNAL(urlChanged(KUrl)),
SIGNAL(urlSelected(KUrl)));
// Tag view
connect(d->mTagView, SIGNAL(clicked(QModelIndex)),
SLOT(slotTagViewClicked(QModelIndex)));
// Recent folder view
connect(d->mRecentFoldersView, SIGNAL(indexActivated(QModelIndex)),
SLOT(slotListViewActivated(QModelIndex)));
@ -197,10 +191,6 @@ StartMainPage::~StartMainPage()
delete d;
}
void StartMainPage::slotTagViewClicked(const QModelIndex& index)
{
}
void StartMainPage::applyPalette(const QPalette& newPalette)
{
QColor fgColor = newPalette.text().color();
@ -214,7 +204,6 @@ void StartMainPage::applyPalette(const QPalette& newPalette)
setPalette(pal);
initViewPalette(d->mBookmarksView, fgColor);
initViewPalette(d->mTagView, fgColor);
initViewPalette(d->mRecentFoldersView, fgColor);
initViewPalette(d->mRecentUrlsView, fgColor);
}

View file

@ -63,7 +63,6 @@ protected:
private Q_SLOTS:
void slotListViewActivated(const QModelIndex& index);
void showRecentFoldersViewContextMenu(const QPoint& pos);
void slotTagViewClicked(const QModelIndex& index);
private:
StartMainPagePrivate* const d;

View file

@ -127,42 +127,6 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="tagsTab">
<attribute name="title">
<string>Tags</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="mTagLabel">
<property name="text">
<string>Browsing by tags is not available. Make sure Nepomuk is properly installed on your computer.</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QListView" name="mTagView">
<property name="cursor" stdset="0">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>