File: label.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 (15 lines) | stat: -rw-r--r-- 451 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <Tui/ZHBoxLayout.h>
#include <Tui/ZInputBox.h>
#include <Tui/ZLabel.h>
#include <Tui/ZWidget.h>

void exampleLabel(Tui::ZWidget *dialog, Tui::ZHBoxLayout *layout) {
// snippet-start
    Tui::ZLabel *label = new Tui::ZLabel(Tui::withMarkup, "<m>F</m>ilename", dialog);
    Tui::ZInputBox *textinput = new Tui::ZInputBox(dialog);
    label->setBuddy(textinput);
    layout->addWidget(label);
    layout->addWidget(textinput);
// snippet-end
}