tonalutils.h raw
1 // Copyright (c) 2016 The Limenka developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5 #ifndef LIMENKA_QT_TONALUTILS_H
6 #define LIMENKA_QT_TONALUTILS_H
7
8 #include <QValidator>
9
10 QT_BEGIN_NAMESPACE
11 class QFont;
12 class QString;
13 QT_END_NAMESPACE
14
15 class TonalUtils
16 {
17 public:
18 static bool font_supports_tonal(const QFont& font);
19
20 static QValidator::State validate(QString&input, int&pos);
21
22 static void ConvertFromHex(QString&);
23 static void ConvertToHex(QString&);
24 };
25
26 #endif // LIMENKA_QT_TONALUTILS_H
27