|
|
@ -98,21 +98,6 @@ void initApp() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ClickableWidget::ClickableWidget(QWidget *parent) : QWidget(parent) { } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ClickableWidget::mouseReleaseEvent(QMouseEvent *event) { |
|
|
|
|
|
|
|
emit clicked(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Fix stylesheets
|
|
|
|
|
|
|
|
void ClickableWidget::paintEvent(QPaintEvent *) { |
|
|
|
|
|
|
|
QStyleOption opt; |
|
|
|
|
|
|
|
opt.init(this); |
|
|
|
|
|
|
|
QPainter p(this); |
|
|
|
|
|
|
|
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void swagLogMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) { |
|
|
|
void swagLogMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) { |
|
|
|
static std::map<QtMsgType, int> levels = { |
|
|
|
static std::map<QtMsgType, int> levels = { |
|
|
|
{QtMsgType::QtDebugMsg, CLOUDLOG_DEBUG}, |
|
|
|
{QtMsgType::QtDebugMsg, CLOUDLOG_DEBUG}, |
|
|
|