summaryrefslogtreecommitdiffstats
blob: ad584997e6f85cccd8c393ae8012900fa29f463c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) 2010-2013 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

class QWidget;
class QString;

#include <QKeyEvent>

namespace QtUtilities {
    void setX11Resource(QWidget* widget, const QString& c);
    QString htmlEscape(const QString& s);
    #ifdef SWIFTEN_PLATFORM_MACOSX
    const Qt::KeyboardModifier ctrlHardwareKeyModifier = Qt::MetaModifier;
    #else
    const Qt::KeyboardModifier ctrlHardwareKeyModifier = Qt::ControlModifier;
    #endif
}