Use kdelibs coding style
This commit is contained in:
parent
0084798a2c
commit
d965371d23
31 changed files with 201 additions and 234 deletions
|
@ -22,15 +22,18 @@
|
|||
#include <QPushButton>
|
||||
#include <QLineEdit>
|
||||
|
||||
namespace Danbooru {
|
||||
namespace Danbooru
|
||||
{
|
||||
|
||||
DanbooruSearchWidget::DanbooruSearchWidget(QWidget* parent): QWidget(parent)
|
||||
DanbooruSearchWidget::DanbooruSearchWidget(QWidget *parent): QWidget(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
|
||||
connect(searchButton, &QPushButton::clicked, this, &DanbooruSearchWidget::accept);
|
||||
connect(tagLineEdit, &QLineEdit::returnPressed, this, &DanbooruSearchWidget::accept);
|
||||
connect(closeButton, &QPushButton::clicked, [this]() { Q_EMIT(rejected()); });
|
||||
connect(closeButton, &QPushButton::clicked, [this]() {
|
||||
Q_EMIT(rejected());
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
@ -43,9 +46,10 @@ QStringList DanbooruSearchWidget::selectedTags() const
|
|||
return m_tags;
|
||||
}
|
||||
|
||||
void DanbooruSearchWidget::accept() {
|
||||
void DanbooruSearchWidget::accept()
|
||||
{
|
||||
|
||||
if(tagLineEdit->text().isEmpty()) {
|
||||
if (tagLineEdit->text().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -53,5 +57,4 @@ void DanbooruSearchWidget::accept() {
|
|||
Q_EMIT(accepted());
|
||||
}
|
||||
|
||||
|
||||
} // namespace Danbooru
|
Loading…
Add table
Add a link
Reference in a new issue