本文整理汇总了C++中KateMainWindow::show方法的典型用法代码示例。如果您正苦于以下问题:C++ KateMainWindow::show方法的具体用法?C++ KateMainWindow::show怎么用?C++ KateMainWindow::show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KateMainWindow
的用法示例。
在下文中一共展示了KateMainWindow::show方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: KateMainWindow
KateMainWindow *KateApp::newMainWindow (KConfig *sconfig_, const QString &sgroup_)
{
KConfig *sconfig = sconfig_ ? sconfig_ : KGlobal::config().data();
QString sgroup = !sgroup_.isEmpty() ? sgroup_ : "MainWindow0";
KateMainWindow *mainWindow = new KateMainWindow (sconfig, sgroup);
mainWindow->show ();
return mainWindow;
}
示例2: activate
void KateAppAdaptor::activate ()
{
KateMainWindow *win = m_app->activeMainWindow();
if (!win)
return;
win->show();
win->activateWindow();
win->raise();
#ifdef Q_WS_X11
KWindowSystem::forceActiveWindow (win->winId ());
KWindowSystem::raiseWindow (win->winId ());
#endif
}
示例3: if
KateMainWindow *KateApp::newMainWindow (KConfig *sconfig, const QString &sgroup)
{
KateMainWindow *mainWindow = new KateMainWindow (sconfig, sgroup);
m_mainWindows.push_back (mainWindow);
if ((mainWindows() > 1) && m_mainWindows[m_mainWindows.count()-2]->viewManager()->activeView())
mainWindow->viewManager()->activateView ( m_mainWindows[m_mainWindows.count()-2]->viewManager()->activeView()->getDoc()->documentNumber() );
else if ((mainWindows() > 1) && (m_docManager->documents() > 0))
mainWindow->viewManager()->activateView ( (m_docManager->document(m_docManager->documents()-1))->documentNumber() );
else if ((mainWindows() > 1) && (m_docManager->documents() < 1))
mainWindow->viewManager()->openURL ( KURL() );
mainWindow->show ();
return mainWindow;
}