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

info_dialog.hpp « qt - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 859f7c6076f1933baebbcb0959779118f18c2d7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <QtWidgets/QApplication>
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
  #include <QtGui/QDialog>
#else
  #include <QtWidgets/QDialog>
#endif

namespace qt
{
  /// Simple information dialog with scrollable html content
  /// @note exec() returns 0 if dialog was closed or [1..buttons_count] for any button pressed
  class InfoDialog : public QDialog
  {
    Q_OBJECT

  public:
    explicit InfoDialog(QString const & title, QString const & text,
                        QWidget * parent, QStringList const & buttons = QStringList());
  public Q_SLOTS:
    void OnButtonClick1();
    void OnButtonClick2();
    void OnButtonClick3();
  };
}