All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Brief description of class still missing. More...
#include <MultiDocumentTabBar.h>
Signals | |
| void | closeTabRequested (int at) |
| void | newTabRequested (int at) |
| void | renameTabRequested (int at) |
Public Member Functions | |
| MultiDocumentTabBar (QWidget *parent=0) | |
| ~MultiDocumentTabBar () | |
Protected Member Functions | |
| void | mouseDoubleClickEvent (QMouseEvent *event) |
Brief description of class still missing.
Full description of class still missing
| QGpGuiTools::MultiDocumentTabBar::MultiDocumentTabBar | ( | QWidget * | parent = 0 | ) |
Description of constructor still missing
References QGpCoreTools::tr(), and TRACE.
: QTabBar(parent)
{
TRACE;
setContextMenuPolicy(Qt::CustomContextMenu);
connect(this, SIGNAL(customContextMenuRequested(const QPoint&)),
this, SLOT(showContextMenu(const QPoint&)));
QAction * a;
a=new QAction(tr("New tab"), this);
a->setToolTip(tr("Insert a new tab after this one (or before if it is the first tab)"));
connect(a, SIGNAL(triggered()), this, SLOT(newTab()));
addAction(a);
a=new QAction(tr("Rename"), this);
a->setToolTip(tr("Rename this tab"));
connect(a, SIGNAL(triggered()), this, SLOT(renameTab()));
addAction(a);
a=new QAction(tr("Close"), this);
a->setToolTip(tr("Close this tab"));
connect(a, SIGNAL(triggered()), this, SLOT(closeTab()));
addAction(a);
}
| void QGpGuiTools::MultiDocumentTabBar::closeTabRequested | ( | int | at | ) | [signal] |
| void QGpGuiTools::MultiDocumentTabBar::mouseDoubleClickEvent | ( | QMouseEvent * | event | ) | [protected] |
References renameTabRequested(), and TRACE.
{
TRACE;
int index=tabAt(event->pos());
if(index>-1) {
emit renameTabRequested(index);
}
}
| void QGpGuiTools::MultiDocumentTabBar::newTabRequested | ( | int | at | ) | [signal] |
| void QGpGuiTools::MultiDocumentTabBar::renameTabRequested | ( | int | at | ) | [signal] |
Referenced by mouseDoubleClickEvent().