Use dialog instead of popup menu.
[yandex-traffic] / menudialog.hpp
1 #ifndef __MENUDIALOG_H__
2 #define __MENUDIALOG_H__
3
4 #include <QtGui>
5
6
7 class MenuDialog : public QDialog
8 {
9     Q_OBJECT
10 private:
11     QList<QPushButton*> _buttons;
12     QBoxLayout* _layout;
13     int index;
14
15 protected slots:
16     void buttonClicked ();
17
18 public:
19     MenuDialog (const QString &title);
20     MenuDialog& addEntry (const QString &text);
21     int run ();
22 };
23
24 #endif // __MENUDIALOG_H__