]> git.sur5r.net Git - minitube/commitdiff
Removed useless/commented code
authorFlavio Tordini <flavio.tordini@gmail.com>
Mon, 14 Sep 2015 09:08:02 +0000 (11:08 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Mon, 14 Sep 2015 09:08:02 +0000 (11:08 +0200)
minitube.pro
src/searchwidget.cpp [deleted file]
src/searchwidget.h

index 18c2fb93297fc7ee7f759d62e76c2137d72ff1e2..e8a0f3f0700de76946a683124e9d1f9833766c87 100644 (file)
@@ -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 (file)
index 88a7e9d..0000000
+++ /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<QWidget*>(interface);
-    l->addWidget(w);
-}
-
-QMenu *SearchWidget::menu() const {
-    return interface->menu();
-}
-
-void SearchWidget::setMenu(QMenu *menu) {
-    interface->setMenu(menu);
-}
-*/
index 07e9d4abe3e13f2f213d141a36722103e97c2027..b60571036374930ec58b48c53ac9e2a8b4ac5c7c 100644 (file)
@@ -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