mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 07:24:58 -04:00
Update files format with clang-format
This commit is contained in:
committed by
Luis Ángel San Martín
parent
732ea7ecac
commit
f945c6c5ca
@ -24,7 +24,7 @@ signals:
|
||||
public slots:
|
||||
void select();
|
||||
void deselect();
|
||||
void setName(const QString & name);
|
||||
void setName(const QString &name);
|
||||
|
||||
private:
|
||||
QLabel *icon;
|
||||
|
@ -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));
|
||||
|
@ -60,7 +60,7 @@ YACReaderSideBar::YACReaderSideBar(QWidget *parent)
|
||||
l->addSpacing(3);
|
||||
}
|
||||
|
||||
l->addWidget(selectedLibrary);
|
||||
l->addWidget(selectedLibrary);
|
||||
|
||||
if (!theme.isMacosNative) {
|
||||
l->addSpacing(11);
|
||||
|
@ -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();
|
||||
|
@ -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));
|
||||
|
@ -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();
|
||||
};
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include "theme.h"
|
||||
|
||||
|
||||
YACReaderTreeView::YACReaderTreeView(QWidget *parent)
|
||||
: QTreeView(parent)
|
||||
{
|
||||
|
Reference in New Issue
Block a user