summaryrefslogtreecommitdiffstats
blob: 6f82dfdabb2c33ccc1dbebf70a997f7cd6edc832 (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 Remko Tronçon
 * Licensed under the GNU General Public License v3.
 * See Documentation/Licenses/GPLv3.txt 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
}