File: dialog.cpp

package info (click to toggle)
tuiwidgets 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,852 kB
  • sloc: cpp: 70,959; python: 655; sh: 39; makefile: 24
file content (18 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <QRect>

#include <Tui/ZRoot.h>
#include <Tui/ZWidget.h>
#include <Tui/ZDialog.h>

void exampleDialog(Tui::ZRoot *root) {
// snippet-start
    Tui::ZDialog dialog(root);
    dialog.setGeometry({1, 1, 18, 4});
    dialog.setOptions({Tui::ZWindow::MoveOption |
                       Tui::ZWindow::ResizeOption |
                       Tui::ZWindow::CloseOption |
                       Tui::ZWindow::AutomaticOption |
                       Tui::ZWindow::ContainerOptions });
// snippet-end
}