2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Removed blue window title, new small title used only in Windows.

This commit is contained in:
John Preston
2016-11-04 11:23:50 +03:00
parent 1ecd6866c7
commit 0cbb0014db
72 changed files with 726 additions and 1583 deletions

View File

@@ -394,4 +394,25 @@ public:
};
class lambda_slot_wrap : public QObject {
Q_OBJECT
public:
lambda_slot_wrap(QObject *parent, lambda_unique<void()> lambda) : QObject(parent), _lambda(std_::move(lambda)) {
}
public slots:
void action() {
_lambda();
}
private:
lambda_unique<void()> _lambda;
};
inline lambda_slot_wrap *lambda_slot(QObject *parent, lambda_unique<void()> lambda) {
return new lambda_slot_wrap(parent, std_::move(lambda));
}
} // namespace base

View File

@@ -38,7 +38,7 @@ inline bool skipWhitespaces(const char *&from, const char *end) {
return (from != end);
}
inline QByteArray readName(const char *&from, const char *end) {
inline QLatin1String readName(const char *&from, const char *end) {
t_assert(from <= end);
auto start = from;
while (from != end && (
@@ -48,7 +48,7 @@ inline QByteArray readName(const char *&from, const char *end) {
(*from == '_'))) {
++from;
}
return QByteArray::fromRawData(start, from - start);
return QLatin1String(start, from - start);
}
} // namespace parse