Main Page
Modules
Namespaces
Classes
Files
File List
File Members
HelpTest2.cpp
Go to the documentation of this file.
1
#include "
HelpTest2.h
"
2
3
//TerraLib help files
4
#include <
terralib/qt/widgets/help/HelpPushButton.h
>
5
6
//Qt
7
#include <QGridLayout>
8
9
HelpTest2::HelpTest2
(
QWidget
* parent) :
10
QWidget
(parent, Qt::Dialog)
11
{
12
m_help_btn
=
new
te::qt::widgets::HelpPushButton
(
this
);
13
m_help_btn
->
setPageReference
(
"qthelp://dpi.inpe.br.help_example/doc/teste2.htm"
);
14
15
// m_help_btn->setText("Teste 2");
16
17
createGUI
();
18
}
19
20
HelpTest2::~HelpTest2
()
21
{
22
}
23
24
void
HelpTest2::createGUI
()
25
{
26
QGridLayout* l =
new
QGridLayout(
this
);
27
28
l->addWidget(
m_help_btn
);
29
}
HelpPushButton.h
A specialized button that uses terralib help managers.
te::qt::widgets::HelpPushButton::setPageReference
void setPageReference(const QString &ref)
Sets the documentation page reference.
Definition:
HelpPushButton.cpp:38
QWidget
HelpTest2::m_help_btn
te::qt::widgets::HelpPushButton * m_help_btn
Definition:
HelpTest2.h:58
HelpTest2.h
HelpTest2::createGUI
void createGUI()
Definition:
HelpTest2.cpp:24
HelpTest2::HelpTest2
HelpTest2(QWidget *parent=0)
Definition:
HelpTest2.cpp:9
HelpTest2::~HelpTest2
~HelpTest2()
Definition:
HelpTest2.cpp:20
te::qt::widgets::HelpPushButton
Push button that uses te::qt::widgets::HelpManager on its mouse pressed implementation.
Definition:
HelpPushButton.h:50
terralib5_src
examples
help
HelpTest2.cpp
Generated on Wed Jun 6 2018 12:16:09 for TerraLib by
1.8.11