mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
Unify/prettify Qt client headers style
This commit is contained in:
15
qt/Utils.h
15
qt/Utils.h
@@ -12,27 +12,18 @@
|
||||
|
||||
#include <cctype> // isxdigit()
|
||||
|
||||
#include <QIcon>
|
||||
#include <QObject>
|
||||
#include <QRect>
|
||||
#include <QString>
|
||||
|
||||
#include "Speed.h"
|
||||
|
||||
class QColor;
|
||||
class QIcon;
|
||||
|
||||
class Utils: public QObject
|
||||
class Utils
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Utils () {}
|
||||
virtual ~Utils () {}
|
||||
|
||||
public:
|
||||
static QIcon guessMimeIcon (const QString& filename);
|
||||
// Test if string is UTF-8 or not
|
||||
static bool isValidUtf8 (const char *s);
|
||||
static bool isValidUtf8 (const char * s);
|
||||
|
||||
static QString removeTrailingDirSeparator (const QString& path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user