QueuePool::QueuePool(QWidget* parent) : KTabWidget(parent) { setTabBarHidden(false); #if KDE_IS_VERSION(4,3,0) setTabsClosable(false); #else setCloseButtonEnabled(false); #endif slotAddQueue(); connect(this, SIGNAL(currentChanged(int)), this, SLOT(slotQueueSelected(int))); connect(this, SIGNAL(closeRequest(QWidget*)), this, SLOT(slotCloseQueueRequest(QWidget*))); connect(this, SIGNAL(testCanDecode(const QDragMoveEvent*, bool&)), this, SLOT(slotTestCanDecode(const QDragMoveEvent*, bool&))); // -- FileWatch connections ------------------------------ LoadingCacheInterface::connectToSignalFileChanged(this, SLOT(slotFileChanged(const QString&))); }
void ProcessingDialog::showEvent(QShowEvent *event) { QDialog::showEvent(event); if(m_firstShow) { static const char *NA = " N/A"; setCloseButtonEnabled(false); ui->button_closeDialog->setEnabled(false); ui->button_AbortProcess->setEnabled(false); m_systemTray->setVisible(true); if(!SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS)) { SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); } ui->label_cpu->setText(NA); ui->label_disk->setText(NA); ui->label_ram->setText(NA); QTimer::singleShot(1000, this, SLOT(initEncoding())); m_firstShow = false; } //Force update geometry resizeEvent(NULL); }
KateTabBar::KateTabBar(QWidget *parent) : KTabBar(parent), m_documents(), m_keys(), m_position(0) { setShape(QTabBar::RoundedSouth); setCloseButtonEnabled(true); }