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: fa987ab631f309b45916c2f402e42b3ccda80437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>

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();
  };
}