/** * Class constructor. * @param pParent The parent widget * @param szName The widget's name */ HistoryPage::HistoryPage(QWidget* pParent, const char* szName) : QueryPageBase(pParent, szName), m_nPageID(++s_nMaxPageID) { m_pView = new HistoryView(this); connect(m_pView, SIGNAL(lineRequested(const QString&, uint)), this, SIGNAL(lineRequested(const QString&, uint))); // Set colours and font applyPrefs(); }
/** * Class constructor. * @param pParent The parent widget * @param szName The widget's name */ QueryPage::QueryPage(QWidget* pParent, const char * szName) : QueryPageBase(pParent, szName), m_nType(CscopeFrontend::None) { m_pView = new QueryView(this); m_pDriver = new QueryViewDriver(m_pView, this); connect(m_pView, SIGNAL(lineRequested(const QString&, uint)), this, SIGNAL(lineRequested(const QString&, uint))); // Set colours and font applyPrefs(); }
/** * Class constructor. * @param pParent The parent widget * @param szName The widget's name */ FileList::FileList(QWidget* pParent, const char* szName) : SearchList(1, pParent, szName), m_sRoot("/") { // Set the list's columns m_pList->addColumn(""); m_pList->addColumn(i18n("File")); m_pList->addColumn(i18n("Path")); // Sort only when asked to by the user if (Config().getAutoSortFiles()) m_pList->setSortColumn(1); else m_pList->setSortColumn(m_pList->columns() + 1); m_pList->setAllColumnsShowFocus(true); // Set colours and font applyPrefs(); }
/** * Class constructor. * @param pParent The parent widget * @param szName The widget's name */ EditorManager::EditorManager(QWidget* pParent, const char* szName) : KParts::PartManager(pParent, szName) { applyPrefs(); }
void KMixWindow::initPrefDlg() { KMixPrefDlg* prefDlg = KMixPrefDlg::createInstance(this, GlobalConfig::instance()); connect(prefDlg, SIGNAL(kmixConfigHasChanged()), SLOT(applyPrefs())); }