Update files format with clang-format

This commit is contained in:
Luis Ángel San Martín
2019-06-01 18:44:35 +02:00
committed by Luis Ángel San Martín
parent 732ea7ecac
commit f945c6c5ca
23 changed files with 104 additions and 114 deletions

View File

@ -24,7 +24,7 @@ signals:
public slots:
void select();
void deselect();
void setName(const QString & name);
void setName(const QString &name);
private:
QLabel *icon;

View File

@ -29,7 +29,7 @@ YACReaderSearchLineEdit::YACReaderSearchLineEdit(QWidget *parent)
clearButton->setStyleSheet("QToolButton { border: none; padding: 0px; }");
clearButton->hide();
connect(clearButton, SIGNAL(clicked()), this, SLOT(clear()));
connect(this, SIGNAL(textChanged(const QString&)), this, SLOT(updateCloseButton(const QString&)));
connect(this, SIGNAL(textChanged(const QString &)), this, SLOT(updateCloseButton(const QString &)));
int frameWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth);
setStyleSheet(QString("QLineEdit {color: #ABABAB; border:none; border-radius: 4px; background-color:#404040; padding-left: %1px; padding-right: %2px; padding-bottom: 1px; margin-right: 9px;} ").arg(searchLabel->sizeHint().width() + frameWidth + 6 + 5).arg(clearButton->sizeHint().width() + frameWidth + 2));

View File

@ -60,7 +60,7 @@ YACReaderSideBar::YACReaderSideBar(QWidget *parent)
l->addSpacing(3);
}
l->addWidget(selectedLibrary);
l->addWidget(selectedLibrary);
if (!theme.isMacosNative) {
l->addSpacing(11);

View File

@ -41,7 +41,7 @@ public slots:
protected:
void paintEvent(QPaintEvent *);
void closeEvent ( QCloseEvent * event );
void closeEvent(QCloseEvent *event);
QSettings *settings;
QSplitter *splitter;
Theme theme = Theme::currentTheme();

View File

@ -88,7 +88,7 @@ YACReaderTitledToolBar::YACReaderTitledToolBar(const QString &title, QWidget *pa
void YACReaderTitledToolBar::addAction(QAction *action)
{
auto mainLayout = dynamic_cast<QHBoxLayout *>(layout());
auto mainLayout = dynamic_cast<QHBoxLayout *>(layout());
auto tb = new QToolButton(this);
tb->setCursor(QCursor(Qt::ArrowCursor));

View File

@ -25,7 +25,7 @@ private:
QColor dropShadowColor;
QColor textColor;
void drawText(QPainter *painter, QPoint offset);
void drawTextEffect(QPainter* painter, QPoint offset);
void drawTextEffect(QPainter *painter, QPoint offset);
Theme theme = Theme::currentTheme();
};
@ -44,7 +44,7 @@ public slots:
void addSepartor();
private:
DropShadowLabel * nameLabel;
DropShadowLabel *nameLabel;
Theme theme = Theme::currentTheme();
};

View File

@ -2,7 +2,6 @@
#include "theme.h"
YACReaderTreeView::YACReaderTreeView(QWidget *parent)
: QTreeView(parent)
{