215 QStyleOptionTab opt; |
215 QStyleOptionTab opt; |
216 if (tabBar) { |
216 if (tabBar) { |
217 opt.init(tabBar); |
217 opt.init(tabBar); |
218 opt.shape = tabBar->shape(); |
218 opt.shape = tabBar->shape(); |
219 tabBar->setContextMenuPolicy(Qt::CustomContextMenu); |
219 tabBar->setContextMenuPolicy(Qt::CustomContextMenu); |
220 connect(tabBar, SIGNAL(customContextMenuRequested(const QPoint&)), SLOT(openTabMenu(const QPoint&))); |
220 connect(tabBar, SIGNAL(customContextMenuRequested(QPoint)), SLOT(openTabMenu(QPoint))); |
221 } |
221 } |
222 |
222 |
223 // workaround for sgi style |
223 // workaround for sgi style |
224 QPalette pal = palette(); |
224 QPalette pal = palette(); |
225 pal.setColor(QPalette::Active, QPalette::Button, pal.color(QPalette::Active, QPalette::Window)); |
225 pal.setColor(QPalette::Active, QPalette::Button, pal.color(QPalette::Active, QPalette::Window)); |
246 |
246 |
247 QObject::connect(ui.toolClose, SIGNAL(clicked()), ui.frameFind, SLOT(hide())); |
247 QObject::connect(ui.toolClose, SIGNAL(clicked()), ui.frameFind, SLOT(hide())); |
248 QObject::connect(ui.toolPrevious, SIGNAL(clicked()), this, SLOT(findPrevious())); |
248 QObject::connect(ui.toolPrevious, SIGNAL(clicked()), this, SLOT(findPrevious())); |
249 QObject::connect(ui.toolNext, SIGNAL(clicked()), this, SLOT(findNext())); |
249 QObject::connect(ui.toolNext, SIGNAL(clicked()), this, SLOT(findNext())); |
250 QObject::connect(ui.editFind, SIGNAL(returnPressed()), this, SLOT(findNext())); |
250 QObject::connect(ui.editFind, SIGNAL(returnPressed()), this, SLOT(findNext())); |
251 QObject::connect(ui.editFind, SIGNAL(textEdited(const QString&)), |
251 QObject::connect(ui.editFind, SIGNAL(textEdited(QString)), |
252 this, SLOT(find(QString))); |
252 this, SLOT(find(QString))); |
253 ui.frameFind->setVisible(false); |
253 ui.frameFind->setVisible(false); |
254 ui.labelWrapped->setVisible(false); |
254 ui.labelWrapped->setVisible(false); |
255 autoHideTimer = new QTimer(this); |
255 autoHideTimer = new QTimer(this); |
256 autoHideTimer->setInterval(5000); |
256 autoHideTimer->setInterval(5000); |