Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2022-08-25 19:34:00 +0300
committerRobert Adam <dev@robert-adam.de>2022-09-10 18:10:14 +0300
commit9f184fe6d688081c392ad3ec54a6ff031962e21c (patch)
tree4fdb94f01883a99b1985d42c3a3f439249ca4f01 /src/mumble
parent04e3d4c63590f5adf7b431753047e13d58864625 (diff)
FORMAT: Don't clang-format ApplicationPaletteTemplate.h
Applying clang-format to this source file actually invalidates the file's syntax rendering it un-parseable by the generate-ApplicationPalette-class.py script.
Diffstat (limited to 'src/mumble')
-rw-r--r--src/mumble/ApplicationPaletteTemplate.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/mumble/ApplicationPaletteTemplate.h b/src/mumble/ApplicationPaletteTemplate.h
index c2d28f1d6..b81b0f69c 100644
--- a/src/mumble/ApplicationPaletteTemplate.h
+++ b/src/mumble/ApplicationPaletteTemplate.h
@@ -5,7 +5,9 @@
// See scripts/generate-ApplicationPalette-class.py
-% (warning) s
+// clang-format off
+
+%(warning)s
#ifndef APPLICATIONPALETTE_H
#define APPLICATIONPALETTE_H
@@ -51,13 +53,13 @@
///
class ApplicationPalette : public QWidget {
Q_OBJECT
- % (properties) s public : explicit ApplicationPalette(QWidget *p = 0)
+ %(properties)s public : explicit ApplicationPalette(QWidget *p = 0)
: QWidget(p),
m_originalPalette(QApplication::palette()){
// Empty
}
- % (getterssetters) s
+ %(getterssetters)s
private slots : void updateApplicationPalette() {
qWarning() << "Updating application palette";
@@ -65,13 +67,13 @@
QPalette newPalette = m_originalPalette; // Do not re-use potentially already styled palette. Might not pick up
// system style changes though.
- % (paletteupdates) s
+ %(paletteupdates)s
QApplication::setPalette(newPalette);
resetAllProperties();
}
- void resetAllProperties() { % (propertyresets) s }
+ void resetAllProperties() { %(propertyresets)s }
protected:
bool event(QEvent *e) Q_DECL_OVERRIDE {
@@ -89,7 +91,9 @@ protected:
private:
const QPalette m_originalPalette;
- % (variables) s
+ %(variables)s
};
+// clang-format on
+
#endif // APPLICATIONPALETTE_H