summaryrefslogtreecommitdiffstats
blob: 4d71d7c92143b6ac38385a0acaf9cef8e9ca2e3a (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
}