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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user