From: Flavio Tordini Date: Mon, 14 Sep 2015 09:08:02 +0000 (+0200) Subject: Removed useless/commented code X-Git-Tag: 2.5~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=af03ee1544ebb5fa0a73d68b2c42fb360190e8ac;p=minitube Removed useless/commented code --- 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