code format
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
#include "iconedlabel.h"
|
||||
|
||||
#include "qad_types.h"
|
||||
|
||||
#include <QEvent>
|
||||
#include <QHBoxLayout>
|
||||
#include <QStyle>
|
||||
#include <QEvent>
|
||||
|
||||
|
||||
IconedLabel::IconedLabel(QWidget * parent): QFrame(parent) {
|
||||
@@ -45,8 +47,8 @@ void IconedLabel::checkSpacing() {
|
||||
} else {
|
||||
QStyle * s = style();
|
||||
if (s) {
|
||||
layout()->setSpacing(s->layoutSpacing(QSizePolicy::Label, QSizePolicy::Label,
|
||||
dir_ <= Direction::RightToLeft ? Qt::Horizontal : Qt::Vertical));
|
||||
layout()->setSpacing(
|
||||
s->layoutSpacing(QSizePolicy::Label, QSizePolicy::Label, dir_ <= Direction::RightToLeft ? Qt::Horizontal : Qt::Vertical));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -72,7 +74,7 @@ void IconedLabel::setIcon(const QIcon & i) {
|
||||
|
||||
|
||||
void IconedLabel::setIconSize(const QSize & s) {
|
||||
size_ = s;
|
||||
size_ = s;
|
||||
QSize sz = realIconSize();
|
||||
icon_.setPixmap(sicon_.pixmap(sz));
|
||||
icon_.setFixedSize(sz);
|
||||
|
||||
Reference in New Issue
Block a user