Source-highlight Qt Library
StyleComboBox.h
1 /*
2  * Copyright (C) 2008-2010 Lorenzo Bettini, http://www.lorenzobettini.it
3  * License: See COPYING file that comes with this distribution
4  */
5 
6 #ifndef STYLECOMBOBOX_H
7 #define STYLECOMBOBOX_H
8 
9 #include <QComboBox>
10 
11 namespace srchiliteqt {
12 
17 class StyleComboBox : public QComboBox
18 {
19  Q_OBJECT
20 public:
27  StyleComboBox(const QString &path = "");
28 
29 public slots:
35  void setCurrentStyle(const QString &styleFile);
36 
40  const QString getCurrentStyle() const;
41 
47  void reload(const QString &path);
48 
49 };
50 
51 }
52 
53 #endif // STYLECOMBOBOX_H
A subclass of QComboBox which provides functionalities for showing and selecting the style files of S...
Definition: StyleComboBox.h:17
void reload(const QString &path)
Reloads the contents of the combo box by using the specified path for searching for ...
Definition: StyleComboBox.cpp:27
Definition: ColorDialog.cpp:12
StyleComboBox(const QString &path="")
Initializes the combo box with the .style and .css files retrieved in the specified path...
Definition: StyleComboBox.cpp:11
void setCurrentStyle(const QString &styleFile)
Sets the style file in the combo.
Definition: StyleComboBox.cpp:17
const QString getCurrentStyle() const
Definition: StyleComboBox.cpp:23