Replace include guards with #pragma once
This commit is contained in:
parent
c470e49aa9
commit
6553aa61a1
66 changed files with 66 additions and 266 deletions
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef UI_AVATAR_H
|
||||
#define UI_AVATAR_H
|
||||
#pragma once
|
||||
|
||||
#include <QIcon>
|
||||
#include <QImage>
|
||||
|
|
@ -47,5 +46,3 @@ private:
|
|||
QPixmap pixmap_;
|
||||
int size_;
|
||||
};
|
||||
|
||||
#endif // UI_AVATAR_H
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef UI_BADGE_H
|
||||
#define UI_BADGE_H
|
||||
#pragma once
|
||||
|
||||
#include <QColor>
|
||||
#include <QIcon>
|
||||
|
|
@ -62,5 +61,3 @@ private:
|
|||
qreal x_;
|
||||
qreal y_;
|
||||
};
|
||||
|
||||
#endif // UI_BADGE_H
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef UI_CIRCULAR_PROGRESS_H
|
||||
#define UI_CIRCULAR_PROGRESS_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QProgressBar>
|
||||
|
|
@ -110,5 +109,3 @@ inline int CircularProgressDelegate::angle() const
|
|||
{
|
||||
return angle_;
|
||||
}
|
||||
|
||||
#endif // UI_CIRCULAR_PROGRESS_H
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef UI_FLAT_BUTTON_H
|
||||
#define UI_FLAT_BUTTON_H
|
||||
#pragma once
|
||||
|
||||
#include <QPaintEvent>
|
||||
#include <QPainter>
|
||||
|
|
@ -170,5 +169,3 @@ private:
|
|||
|
||||
bool use_fixed_ripple_radius_;
|
||||
};
|
||||
|
||||
#endif // UI_FLAT_BUTTON_H
|
||||
|
|
|
|||
|
|
@ -15,8 +15,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef UI_OVERLAY_MODAL_H
|
||||
#define UI_OVERLAY_MODAL_H
|
||||
#pragma once
|
||||
|
||||
#include <QGraphicsOpacityEffect>
|
||||
#include <QPaintEvent>
|
||||
|
|
@ -57,5 +56,3 @@ inline void OverlayModal::setColor(QColor color)
|
|||
{
|
||||
color_ = color;
|
||||
}
|
||||
|
||||
#endif // UI_OVERLAY_MODAL_H
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef UI_OVERLAY_WIDGET_H
|
||||
#define UI_OVERLAY_WIDGET_H
|
||||
#pragma once
|
||||
|
||||
#include <QEvent>
|
||||
#include <QWidget>
|
||||
|
|
@ -17,5 +16,3 @@ protected:
|
|||
|
||||
QRect overlayGeometry() const;
|
||||
};
|
||||
|
||||
#endif // UI_OVERLAY_WIDGET_H
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef UI_RAISED_BUTTON_H
|
||||
#define UI_RAISED_BUTTON_H
|
||||
#pragma once
|
||||
|
||||
#include <QGraphicsDropShadowEffect>
|
||||
#include <QState>
|
||||
|
|
@ -27,5 +26,3 @@ private:
|
|||
QState *pressed_state_;
|
||||
QGraphicsDropShadowEffect *effect_;
|
||||
};
|
||||
|
||||
#endif // UI_RAISED_BUTTON_H
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef UI_RIPPLE_H
|
||||
#define UI_RIPPLE_H
|
||||
#pragma once
|
||||
|
||||
#include <QBrush>
|
||||
#include <QEasingCurve>
|
||||
|
|
@ -132,5 +131,3 @@ inline void Ripple::setDuration(int msecs)
|
|||
radius_anim_->setDuration(msecs);
|
||||
opacity_anim_->setDuration(msecs);
|
||||
}
|
||||
|
||||
#endif // UI_RIPPLE_H
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef UI_RIPPLE_OVERLAY_H
|
||||
#define UI_RIPPLE_OVERLAY_H
|
||||
#pragma once
|
||||
|
||||
#include <QPainterPath>
|
||||
|
||||
|
|
@ -54,5 +53,3 @@ inline void RippleOverlay::setClipPath(const QPainterPath &path)
|
|||
clip_path_ = path;
|
||||
update();
|
||||
}
|
||||
|
||||
#endif // UI_RIPPLE_OVERLAY_H
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef UI_TEXT_FIELD_H
|
||||
#define UI_TEXT_FIELD_H
|
||||
#pragma once
|
||||
|
||||
#include <QColor>
|
||||
#include <QLineEdit>
|
||||
|
|
@ -166,5 +165,3 @@ inline qreal TextFieldStateMachine::progress() const
|
|||
{
|
||||
return progress_;
|
||||
}
|
||||
|
||||
#endif // UI_TEXT_FIELD_H
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef UI_THEME_H
|
||||
#define UI_THEME_H
|
||||
#pragma once
|
||||
|
||||
#include <QColor>
|
||||
#include <QHash>
|
||||
|
|
@ -85,5 +84,3 @@ private:
|
|||
|
||||
QHash<QString, QColor> colors_;
|
||||
};
|
||||
|
||||
#endif // UI_THEME_H
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef UI_THEME_MANAGER_H
|
||||
#define UI_THEME_MANAGER_H
|
||||
#pragma once
|
||||
|
||||
#include <QCommonStyle>
|
||||
|
||||
|
|
@ -29,5 +28,3 @@ inline ThemeManager &ThemeManager::instance()
|
|||
static ThemeManager instance;
|
||||
return instance;
|
||||
}
|
||||
|
||||
#endif // UI_THEME_MANAGER_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue