Skip to content

Instantly share code, notes, and snippets.

@biboudis
Last active December 28, 2015 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biboudis/7551005 to your computer and use it in GitHub Desktop.
Save biboudis/7551005 to your computer and use it in GitHub Desktop.
Signals in QT (class taken from clementine's playlist manager header file).
class PlaylistManagerInterface : public QObject {
Q_OBJECT
public:
PlaylistManagerInterface(Application* app, QObject* parent)
: QObject(parent) {}
// methods
public slots:
virtual void Load(const QString& filename) = 0;
virtual void SelectionChanged(const QItemSelection& selection) = 0;
// more slots ...
signals:
void PlaylistManagerInitialized();
// more signals
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment