Replace include guards with #pragma once

This commit is contained in:
Konstantinos Sideris 2017-05-16 21:46:45 +03:00
parent c470e49aa9
commit 6553aa61a1
66 changed files with 66 additions and 266 deletions

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CHATPAGE_H
#define CHATPAGE_H
#pragma once
#include <QPixmap>
#include <QTimer>
@ -86,5 +85,3 @@ private:
// Matrix Client API provider.
QSharedPointer<MatrixClient> client_;
};
#endif // CHATPAGE_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DESERIALIZABLE_H
#define DESERIALIZABLE_H
#pragma once
#include <exception>
@ -48,5 +47,3 @@ public:
{
}
};
#endif

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef EMOJI_CATEGORY_H
#define EMOJI_CATEGORY_H
#pragma once
#include <QHBoxLayout>
#include <QLabel>
@ -58,5 +57,3 @@ inline void EmojiCategory::clickIndex(const QModelIndex &index)
{
emit emojiSelected(index.data(Qt::UserRole).toString());
}
#endif // EMOJI_CATEGORY_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef EMOJI_ITEM_DELEGATE_H
#define EMOJI_ITEM_DELEGATE_H
#pragma once
#include <QModelIndex>
#include <QStandardItemModel>
@ -37,5 +36,3 @@ public:
private:
Emoji *data_;
};
#endif // EMOJI_ITEM_DELEGATE_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef EMOJI_PANEL_H
#define EMOJI_PANEL_H
#pragma once
#include <QFrame>
#include <QGraphicsOpacityEffect>
@ -66,5 +65,3 @@ private:
const int category_icon_size_ = 20;
};
#endif // EMOJI_PANEL_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef EMOJI_PICK_BUTTON_H
#define EMOJI_PICK_BUTTON_H
#pragma once
#include <QEvent>
#include <QWidget>
@ -46,5 +45,3 @@ private:
EmojiPanel *panel_;
};
#endif // EMOJI_PICK_BUTTON_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef EMOJI_PROVIDER_H
#define EMOJI_PROVIDER_H
#pragma once
#include <QFile>
#include <QList>
@ -41,5 +40,3 @@ public:
static const QList<Emoji> symbols;
static const QList<Emoji> flags;
};
#endif // EMOJI_PROVIDER_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TIMELINE_IMAGE_ITEM_H
#define TIMELINE_IMAGE_ITEM_H
#pragma once
#include <QEvent>
#include <QMouseEvent>
@ -71,5 +70,3 @@ private:
QSharedPointer<MatrixClient> client_;
};
#endif // TIMELINE_IMAGE_ITEM_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef IMAGE_OVERLAY_DIALOG_H
#define IMAGE_OVERLAY_DIALOG_H
#pragma once
#include <QDialog>
#include <QMouseEvent>
@ -49,5 +48,3 @@ private:
QRect content_;
QRect close_button_;
};
#endif // IMAGE_OVERLAY_DIALOG_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MATRIX_INPUT_VALIDATOR_H
#define MATRIX_INPUT_VALIDATOR_H
#pragma once
#include <QRegExp>
#include <QRegExpValidator>
@ -30,5 +29,3 @@ public:
static QRegExpValidator Password;
static QRegExpValidator Domain;
};
#endif // MATRIX_INPUT_VALIDATOR_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LOGIN_H
#define LOGIN_H
#pragma once
#include <QJsonDocument>
@ -77,5 +76,3 @@ inline QString LoginResponse::getUserId()
{
return user_id_;
}
#endif // LOGIN_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LOGINPAGE_H
#define LOGINPAGE_H
#pragma once
#include <QHBoxLayout>
#include <QLabel>
@ -86,5 +85,3 @@ private:
// Matrix client API provider.
QSharedPointer<MatrixClient> client_;
};
#endif // LOGINPAGE_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LOGIN_SETTINGS_H
#define LOGIN_SETTINGS_H
#pragma once
#include <QFrame>
@ -36,5 +35,3 @@ private:
TextField *input_;
FlatButton *submit_button_;
};
#endif // LOGIN_SETTINGS_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#pragma once
#include <QMainWindow>
#include <QSharedPointer>
@ -76,5 +75,3 @@ private:
// Matrix Client API provider.
QSharedPointer<MatrixClient> client_;
};
#endif // MAINWINDOW_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MATRIXCLIENT_H
#define MATRIXCLIENT_H
#pragma once
#include <QtNetwork/QNetworkAccessManager>
@ -160,5 +159,3 @@ inline void MatrixClient::incrementTransactionId()
{
txn_id_ += 1;
}
#endif // MATRIXCLIENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PROFILE_H
#define PROFILE_H
#pragma once
#include <QJsonDocument>
#include <QUrl>
@ -45,5 +44,3 @@ inline QString ProfileResponse::getDisplayName()
{
return display_name_;
}
#endif // PROFILE_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef REGISTER_H
#define REGISTER_H
#pragma once
#include <QJsonDocument>
@ -77,5 +76,3 @@ inline QString RegisterResponse::getUserId()
{
return user_id_;
}
#endif // REGISTER_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef REGISTERPAGE_H
#define REGISTERPAGE_H
#pragma once
#include <QHBoxLayout>
#include <QLabel>
@ -73,5 +72,3 @@ private:
// Matrix client API provider.
QSharedPointer<MatrixClient> client_;
};
#endif // REGISTERPAGE_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ROOMINFOLISTITEM_H
#define ROOMINFOLISTITEM_H
#pragma once
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
@ -104,5 +103,3 @@ inline void RoomInfoListItem::setAvatar(const QImage &avatar_image)
{
roomAvatar_->setImage(avatar_image);
}
#endif // ROOMINFOLISTITEM_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ROOMLIST_H
#define ROOMLIST_H
#pragma once
#include <QImage>
#include <QSharedPointer>
@ -64,5 +63,3 @@ private:
QSharedPointer<MatrixClient> client_;
};
#endif // ROOMLIST_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ROOM_MESSAGES_H
#define ROOM_MESSAGES_H
#pragma once
#include <QJsonArray>
#include <QJsonDocument>
@ -52,5 +51,3 @@ inline QJsonArray RoomMessages::chunk() const
{
return chunk_;
}
#endif // ROOM_MESSAGES_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ROOM_STATE_H
#define ROOM_STATE_H
#pragma once
#include <QPixmap>
@ -59,5 +58,3 @@ inline QString RoomState::resolveTopic() const
{
return topic.content().topic().simplified();
}
#endif // ROOM_STATE_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SLIDINGSTACKWIDGET_H
#define SLIDINGSTACKWIDGET_H
#pragma once
#include <QDebug>
#include <QEasingCurve>
@ -90,5 +89,3 @@ protected:
// Next widget's to show index.
int next_;
};
#endif // SLIDINGSTACKWIDGET_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SYNC_H
#define SYNC_H
#pragma once
#include <QJsonArray>
#include <QJsonDocument>
@ -196,5 +195,3 @@ inline QString SyncResponse::nextBatch() const
{
return next_batch_;
}
#endif // SYNC_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TEXT_INPUT_WIDGET_H
#define TEXT_INPUT_WIDGET_H
#pragma once
#include <QHBoxLayout>
#include <QPaintEvent>
@ -65,5 +64,3 @@ private:
FlatButton *send_message_button_;
EmojiPickButton *emoji_button_;
};
#endif // TEXT_INPUT_WIDGET_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HISTORY_VIEW_ITEM_H
#define HISTORY_VIEW_ITEM_H
#pragma once
#include <QHBoxLayout>
#include <QLabel>
@ -63,5 +62,3 @@ private:
QLabel *time_label_;
QLabel *content_label_;
};
#endif // HISTORY_VIEW_ITEM_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HISTORY_VIEW_H
#define HISTORY_VIEW_H
#pragma once
#include <QHBoxLayout>
#include <QList>
@ -119,5 +118,3 @@ private:
QList<PendingMessage> pending_msgs_;
QSharedPointer<MatrixClient> client_;
};
#endif // HISTORY_VIEW_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HISTORY_VIEW_MANAGER_H
#define HISTORY_VIEW_MANAGER_H
#pragma once
#include <QDebug>
#include <QSharedPointer>
@ -61,5 +60,3 @@ private:
QMap<QString, QSharedPointer<TimelineView>> views_;
QSharedPointer<MatrixClient> client_;
};
#endif

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TOP_ROOM_BAR_H
#define TOP_ROOM_BAR_H
#pragma once
#include <QIcon>
#include <QImage>
@ -78,5 +77,3 @@ inline void TopRoomBar::updateRoomTopic(const QString &topic)
{
topic_label_->setText(topic);
}
#endif // TOP_ROOM_BAR_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef USER_INFO_WIDGET_H
#define USER_INFO_WIDGET_H
#pragma once
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
@ -61,5 +60,3 @@ private:
QImage avatar_image_;
};
#endif

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef WELCOMEPAGE_H
#define WELCOMEPAGE_H
#pragma once
#include <QHBoxLayout>
#include <QLabel>
@ -57,5 +56,3 @@ private:
RaisedButton *register_button_;
RaisedButton *login_button_;
};
#endif // WELCOMEPAGE_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ALIASES_EVENT_CONTENT_H
#define ALIASES_EVENT_CONTENT_H
#pragma once
#include <QJsonValue>
#include <QList>
@ -44,5 +43,3 @@ inline QList<QString> AliasesEventContent::aliases() const
}
} // namespace events
} // namespace matrix
#endif // ALIASES_EVENT_CONTENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AVATAR_EVENT_CONTENT_H
#define AVATAR_EVENT_CONTENT_H
#pragma once
#include <QJsonValue>
#include <QUrl>
@ -48,5 +47,3 @@ inline QUrl AvatarEventContent::url() const
}
} // namespace events
} // namespace matrix
#endif // AVATAR_EVENT_CONTENT_H

View file

@ -1,4 +1,3 @@
/*
* nheko Copyright (C) 2017 Konstantinos Sideris <siderisk@auth.gr>
*
@ -16,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CANONICAL_ALIAS_EVENT_CONTENT_H
#define CANONICAL_ALIAS_EVENT_CONTENT_H
#pragma once
#include <QJsonValue>
@ -51,5 +49,3 @@ inline QString CanonicalAliasEventContent::alias() const
}
} // namespace events
} // namespace matrix
#endif // CANONICAL_ALIAS_EVENT_CONTENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CREATE_EVENT_CONTENT_H
#define CREATE_EVENT_CONTENT_H
#pragma once
#include <QJsonValue>
@ -48,5 +47,3 @@ inline QString CreateEventContent::creator() const
}
} // namespace events
} // namespace matrix
#endif // CREATE_EVENT_CONTENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MATRIX_EVENT_H
#define MATRIX_EVENT_H
#pragma once
#include <QJsonValue>
@ -96,5 +95,3 @@ void Event<Content>::deserialize(const QJsonValue &data)
}
} // namespace events
} // namespace matrix
#endif // MATRIX_EVENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HISTORY_VISIBILITY_EVENT_CONTENT_H
#define HISTORY_VISIBILITY_EVENT_CONTENT_H
#pragma once
#include <QJsonValue>
@ -50,5 +49,3 @@ inline HistoryVisibility HistoryVisibilityEventContent::historyVisibility() cons
}
} // namespace events
} // namespace matrix
#endif // HISTORY_VISIBILITY_EVENT_CONTENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef JOIN_RULES_EVENT_CONTENT_H
#define JOIN_RULES_EVENT_CONTENT_H
#pragma once
#include <QJsonValue>
@ -62,5 +61,3 @@ inline JoinRule JoinRulesEventContent::joinRule() const
}
} // namespace events
} // namespace matrix
#endif // JOIN_RULES_EVENT_CONTENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MEMBER_EVENT_CONTENT_H
#define MEMBER_EVENT_CONTENT_H
#pragma once
#include <QJsonValue>
#include <QUrl>
@ -79,5 +78,3 @@ inline Membership MemberEventContent::membershipState() const
}
} // namespace events
} // namespace matrix
#endif // MEMBER_EVENT_CONTENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MATRIX_MESSAGE_EVENT_H
#define MATRIX_MESSAGE_EVENT_H
#pragma once
#include "MessageEventContent.h"
#include "RoomEvent.h"
@ -63,5 +62,3 @@ struct ThumbnailInfo {
} // namespace messages
} // namespace events
} // namespace matrix
#endif // MATRIX_MESSAGE_EVENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MESSAGE_EVENT_CONTENT_H
#define MESSAGE_EVENT_CONTENT_H
#pragma once
#include <QJsonValue>
@ -74,5 +73,3 @@ inline QString MessageEventContent::body() const
}
} // namespace events
} // namespace matrix
#endif // MESSAGE_EVENT_CONTENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef NAME_EVENT_CONTENT_H
#define NAME_EVENT_CONTENT_H
#pragma once
#include <QJsonValue>
@ -47,5 +46,3 @@ inline QString NameEventContent::name() const
}
} // namespace events
} // namespace matrix
#endif // NAME_EVENT_CONTENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef POWER_LEVELS_EVENT_CONTENT_H
#define POWER_LEVELS_EVENT_CONTENT_H
#pragma once
#include <QJsonValue>
#include <QMap>
@ -104,5 +103,3 @@ inline int PowerLevelsEventContent::usersDefaultLevel() const
}
} // namespace events
} // namespace matrix
#endif // POWER_LEVELS_EVENT_CONTENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MATRIX_ROOM_EVENT_H
#define MATRIX_ROOM_EVENT_H
#pragma once
#include <QJsonValue>
#include <QString>
@ -97,5 +96,3 @@ void RoomEvent<Content>::deserialize(const QJsonValue &data)
}
} // namespace events
} // namespace matrix
#endif // MATRIX_ROOM_EVENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MATRIX_STATE_EVENT_H
#define MATRIX_STATE_EVENT_H
#pragma once
#include <QJsonValue>
@ -69,5 +68,3 @@ void StateEvent<Content>::deserialize(const QJsonValue &data)
}
} // namespace events
} // namespace matrix
#endif // MATRIX_STATE_EVENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TOPIC_EVENT_CONTENT_H
#define TOPIC_EVENT_CONTENT_H
#pragma once
#include <QJsonValue>
@ -47,5 +46,3 @@ inline QString TopicEventContent::topic() const
}
} // namespace events
} // namespace matrix
#endif // TOPIC_EVENT_CONTENT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MESSAGE_EVENT_AUDIO_H
#define MESSAGE_EVENT_AUDIO_H
#pragma once
#include <QJsonObject>
@ -61,5 +60,3 @@ inline AudioInfo Audio::info() const
} // namespace messages
} // namespace events
} // namespace matrix
#endif // MESSAGE_EVENT_AUDIO_H

View file

@ -1,4 +1,3 @@
/*
* nheko Copyright (C) 2017 Konstantinos Sideris <siderisk@auth.gr>
*
@ -16,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MESSAGE_EVENT_EMOTE_H
#define MESSAGE_EVENT_EMOTE_H
#pragma once
#include <QJsonObject>
@ -37,5 +35,3 @@ public:
} // namespace messages
} // namespace events
} // namespace matrix
#endif // MESSAGE_EVENT_EMOTE_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MESSAGE_EVENT_FILE_H
#define MESSAGE_EVENT_FILE_H
#pragma once
#include <QJsonObject>
@ -72,5 +71,3 @@ inline FileInfo File::info() const
} // namespace messages
} // namespace events
} // namespace matrix
#endif // MESSAGE_EVENT_FILE_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MESSAGE_EVENT_IMAGE_H
#define MESSAGE_EVENT_IMAGE_H
#pragma once
#include <QJsonObject>
@ -65,5 +64,3 @@ inline ImageInfo Image::info() const
} // namespace messages
} // namespace events
} // namespace matrix
#endif // MESSAGE_EVENT_IMAGE_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MESSAGE_EVENT_LOCATION_H
#define MESSAGE_EVENT_LOCATION_H
#pragma once
#include <QJsonObject>
@ -61,5 +60,3 @@ inline LocationInfo Location::info() const
} // namespace messages
} // namespace events
} // namespace matrix
#endif // MESSAGE_EVENT_LOCATION_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MESSAGE_EVENT_NOTICE_H
#define MESSAGE_EVENT_NOTICE_H
#pragma once
#include <QJsonObject>
@ -36,5 +35,3 @@ public:
} // namespace messages
} // namespace events
} // namespace matrix
#endif // MESSAGE_EVENT_NOTICE_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MESSAGE_EVENT_TEXT_H
#define MESSAGE_EVENT_TEXT_H
#pragma once
#include <QJsonObject>
@ -36,5 +35,3 @@ public:
} // namespace messages
} // namespace events
} // namespace matrix
#endif // MESSAGE_EVENT_TEXT_H

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MESSAGE_EVENT_VIDEO_H
#define MESSAGE_EVENT_VIDEO_H
#pragma once
#include <QJsonObject>
@ -66,5 +65,3 @@ inline VideoInfo Video::info() const
} // namespace messages
} // namespace events
} // namespace matrix
#endif // MESSAGE_EVENT_VIDEO_H

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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