From af03ee1544ebb5fa0a73d68b2c42fb360190e8ac Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Mon, 14 Sep 2015 11:08:02 +0200 Subject: [PATCH] Removed useless/commented code --- minitube.pro | 1 - src/searchwidget.cpp | 18 ------------------ src/searchwidget.h | 23 ----------------------- 3 files changed, 42 deletions(-) delete mode 100644 src/searchwidget.cpp diff --git a/minitube.pro b/minitube.pro index 18c2fb9..e8a0f3f 100644 --- a/minitube.pro +++ b/minitube.pro @@ -179,7 +179,6 @@ SOURCES += src/main.cpp \ src/paginatedvideosource.cpp \ src/compatibility/pathsservice.cpp \ src/exlineedit.cpp \ - src/searchwidget.cpp \ src/channellistview.cpp RESOURCES += resources.qrc DESTDIR = build/target/ diff --git a/src/searchwidget.cpp b/src/searchwidget.cpp deleted file mode 100644 index 88a7e9d..0000000 --- a/src/searchwidget.cpp +++ /dev/null @@ -1,18 +0,0 @@ -#include "searchwidget.h" - -/* -SearchWidget::SearchWidget(QWidget *parent, SearchWidgetInterface *interface) : QWidget(parent), interface(interface) { - QLayout *l = new QVBoxLayout(this); - l->setMargin(0); - QWidget *w = qobject_cast(interface); - l->addWidget(w); -} - -QMenu *SearchWidget::menu() const { - return interface->menu(); -} - -void SearchWidget::setMenu(QMenu *menu) { - interface->setMenu(menu); -} -*/ diff --git a/src/searchwidget.h b/src/searchwidget.h index 07e9d4a..b605710 100644 --- a/src/searchwidget.h +++ b/src/searchwidget.h @@ -36,28 +36,5 @@ signals: void suggestionAccepted(Suggestion *suggestion); }; -/* -class SearchWidget : public QWidget, public SearchWidgetInterface { - -public: - SearchWidget(QWidget *parent = 0); - QMenu *menu() const; - void setMenu(QMenu *menu); - void enableSuggest(); - void preventSuggest(); - void selectAll(); - void setSuggester(Suggester *suggester); - void setInactiveText(const QString &text); - void setText(const QString &text); - AutoComplete *getAutoComplete(); - void emitTextChanged(const QString &text); - void returnPressed(); - QString text(); - -private: - SearchWidgetInterface *interface; - -}; -*/ #endif // SEARCHWIDGET -- 2.39.5