mirror of https://github.com/qTox/qTox.git
12 changed files with 262 additions and 1 deletions
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
#include "searchform.h" |
||||
#include "src/widget/style.h" |
||||
#include <QHBoxLayout> |
||||
#include <QLineEdit> |
||||
#include <QPushButton> |
||||
|
||||
SearchForm::SearchForm(QWidget *parent) : QWidget(parent) |
||||
{ |
||||
QHBoxLayout *layout = new QHBoxLayout(); |
||||
searchLine = new QLineEdit(); |
||||
upButton = new QPushButton(); |
||||
upButton->setAttribute(Qt::WA_LayoutUsesWidgetRect); |
||||
upButton->setObjectName("searchUpButton"); |
||||
upButton->setProperty("state", "green"); |
||||
upButton->setStyleSheet(Style::getStylesheet(QStringLiteral(":/ui/chatForm/buttons.css"))); |
||||
|
||||
downButton = new QPushButton(); |
||||
downButton->setAttribute(Qt::WA_LayoutUsesWidgetRect); |
||||
downButton->setObjectName("searchDownButton"); |
||||
downButton->setProperty("state", "green"); |
||||
downButton->setStyleSheet(Style::getStylesheet(QStringLiteral(":/ui/chatForm/buttons.css"))); |
||||
|
||||
layout->addWidget(searchLine); |
||||
layout->addWidget(upButton); |
||||
layout->addWidget(downButton); |
||||
|
||||
setLayout(layout); |
||||
} |
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
#ifndef SEARCHFORM_H |
||||
#define SEARCHFORM_H |
||||
|
||||
#include <QWidget> |
||||
|
||||
class QPushButton; |
||||
class QLineEdit; |
||||
|
||||
class SearchForm final : public QWidget |
||||
{ |
||||
Q_OBJECT |
||||
public: |
||||
explicit SearchForm(QWidget *parent = nullptr); |
||||
|
||||
private: |
||||
QPushButton* upButton; |
||||
QPushButton* downButton; |
||||
QLineEdit* searchLine; |
||||
}; |
||||
|
||||
#endif // SEARCHFORM_H
|
Loading…
Reference in new issue