32 #include <QVBoxLayout>
33 #include <QHBoxLayout>
34 #include <QApplication>
47 QVBoxLayout *vbox_layout =
new QVBoxLayout ();
48 vbox_layout->setMargin (0);
49 setLayout (vbox_layout);
51 QHBoxLayout *hbox_layout =
new QHBoxLayout ();
52 hbox_layout->setMargin (0);
53 hbox_layout->setSpacing (0);
54 vbox_layout->addLayout (hbox_layout);
57 _tab_bar->setSizePolicy (QSizePolicy::Preferred,QSizePolicy::Preferred);
74 hbox_layout =
new QHBoxLayout ();
75 vbox_layout->addLayout (hbox_layout);
78 #ifdef HAVE_SETPLACEHOLDERTEXT
80 tr (
"Type here and press \'Return\' to search"));
87 connect (
_tab_bar, SIGNAL (tabCloseRequested (
int)),
this,
89 connect (
_tab_bar, SIGNAL (currentChanged (
int)),
this,
112 QString tab_text = node_name;
113 tab_text.replace(
"XREF",
"");
116 for (
int i = 0; i <
_tab_bar->count (); i++)
118 if (tab_text ==
_tab_bar->tabText (i))
139 QString node = link.toString ();
140 if (node.at (0) !=
'#')
149 QVariant tab_data =
_tab_bar->tabData (index);
150 _text_browser =
static_cast<QTextBrowser*
> (tab_data.value<
void*> ());
167 connect (
_text_browser, SIGNAL (anchorClicked (
const QUrl &)),
this,
169 disconnect(
_tab_bar, SIGNAL (currentChanged(
int)),
this,
179 _tab_bar->setTabData (nt, tab_data);
181 connect (
_tab_bar, SIGNAL (currentChanged (
int)),
this,
196 QVariant tab_data =
_tab_bar->tabData (index);
209 if (text.length () > 0)
259 QClipboard *clipboard = QApplication::clipboard ();
274 QClipboard *clipboard = QApplication::clipboard ();
275 QString str = clipboard->text ();
276 if (str.length () > 0)