本文整理汇总了C++中showAbout函数的典型用法代码示例。如果您正苦于以下问题:C++ showAbout函数的具体用法?C++ showAbout怎么用?C++ showAbout使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showAbout函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QAction
void Clock::initMenu()
{
alwaysOnTopAct = new QAction(tr("Always On Top"), this);
alwaysOnTopAct->setStatusTip(tr("Stay on top of all other windows"));
alwaysOnTopAct->setCheckable(true);
connect(alwaysOnTopAct, SIGNAL(triggered()), this, SLOT(setAlwaysOnTopSlot()));
settingsAct = new QAction(tr("Settings"), this);
settingsAct->setShortcut(tr("Dbl Click"));
settingsAct->setStatusTip(tr("Binary Clock Settings"));
connect(settingsAct, SIGNAL(triggered()), this, SLOT(openSettingsDialog()));
aboutAct = new QAction(tr("About"), this);
aboutAct->setStatusTip(tr("About Binary Clock"));
connect(aboutAct, SIGNAL(triggered()), this, SLOT(showAbout()));
exitAct = new QAction(tr("Exit"), this);
exitAct->setShortcut(tr("Alt+F4"));
exitAct->setStatusTip(tr("Exit the binary clock"));
connect(exitAct, SIGNAL(triggered()), this, SLOT(close()));
contextMenu = new QMenu();
contextMenu->addAction(alwaysOnTopAct);
contextMenu->addSeparator();
contextMenu->addAction(settingsAct);
contextMenu->addAction(aboutAct);
contextMenu->addSeparator();
contextMenu->addAction(exitAct);
}
示例2: QMenu
HelpMenu::HelpMenu(QWidget *parent)
: QMenu(parent)
{
setTitle(tr("&Help"));
about = addAction(tr("About"));
connect(about, SIGNAL(triggered()), this, SLOT(showAbout()));
}
示例3: QAction
void MetaWindow::createActions(){
resetAct = new QAction(tr("&Reset"),this);
resetAct->setShortcut(tr("Ctrl+R"));
resetAct->setStatusTip(tr("Reset the list to its original state."));
connect(resetAct, SIGNAL(triggered()), this, SLOT(resetModel()));
saveAct = new QAction(tr("&Save"),this);
saveAct->setShortcut(tr("Ctrl+S"));
saveAct->setStatusTip(tr("Save the current file."));
connect(saveAct, SIGNAL(triggered()), this, SLOT(saveFile()));
saveAsAct = new QAction(tr("Save As..."),this);
saveAsAct->setStatusTip(tr("Save the current file to a specified file name."));
connect(saveAsAct, SIGNAL(triggered()), this, SLOT(saveFileAs()));
loadAct = new QAction(tr("&Load"),this);
loadAct->setShortcut(tr("Ctrl+L"));
loadAct->setStatusTip(tr("Load input file"));
connect(loadAct, SIGNAL(triggered()), this, SLOT(loadFile()));
quitAct = new QAction(tr("&Quit"),this);
quitAct->setShortcut(tr("Ctrl+Q"));
quitAct->setStatusTip(tr("Quit"));
connect(quitAct, SIGNAL(triggered()), this, SLOT(close()));
aboutAct = new QAction(tr("About"),this);
searchAct = new QAction(tr("Search For Parameter/Parameter List"), this);
searchAct->setToolTip("Search for a particular Parameter or ParameterList");
connect(aboutAct, SIGNAL(triggered()), this, SLOT(showAbout()));
connect(searchAct, SIGNAL(triggered()), this, SLOT(initiateSearch()));
}
示例4: QMenuBar
void Window::dealMenu(void)
{
QMenuBar * MenuBar = new QMenuBar(this);
QMenu * GameMenu = new QMenu(tr("GAME"), MenuBar);
QMenu * HelpMenu = new QMenu(tr("Help"), MenuBar);
QAction * StartGame = new QAction(tr("Start"), GameMenu);
QAction * StopGame = new QAction(tr("End"), GameMenu);
QAction * QuitGame = new QAction(tr("Quit"), GameMenu);
GameMenu->addAction(StartGame);
GameMenu->addAction(StopGame);
GameMenu->addAction(QuitGame);
MenuBar->addMenu(GameMenu);
connect(StartGame, SIGNAL(triggered()), this, SLOT(startGame()));
connect(StopGame, SIGNAL(triggered()), this, SLOT(stopGame()));
connect(QuitGame, SIGNAL(triggered()), this, SLOT(close()));
QAction * About = new QAction(tr("About"), HelpMenu);
HelpMenu->addAction(About);
MenuBar->addMenu(HelpMenu);
connect(About, SIGNAL(triggered()), this, SLOT(showAbout()));
setMenuBar(MenuBar);
}
示例5: QMenu
void MainWindow::initMenu()
{
QMenu *fileMenu = new QMenu("File", this);
QAction *saveAction = new QAction("Save", fileMenu);
QAction *loadAction = new QAction("Load", fileMenu);
QAction *playAction = new QAction("Play", fileMenu);
//QAction *logAction = new QAction("Show log", fileMenu);
saveAction->setShortcut(QKeySequence::Save);
loadAction->setShortcut(QKeySequence("Ctrl+L"));
playAction->setShortcut(QKeySequence("Space"));
fileMenu->addAction(saveAction);
fileMenu->addAction(loadAction);
fileMenu->addAction(playAction);
//fileMenu->addAction(logAction);
menuBar()->addMenu(fileMenu);
connect(saveAction, SIGNAL(triggered()), filesList, SLOT(save()));
connect(loadAction, SIGNAL(triggered()), filesList, SLOT(load()));
connect(playAction, SIGNAL(triggered()), player, SLOT(togglePause()));
//connect(logAction, SIGNAL(triggered()), SLOT(showLog()));
// add "About" item
QMenu *helpMenu = new QMenu(tr("&Help"), this);
QAction *aboutAction = helpMenu->addAction(tr("&About"));
connect(aboutAction, SIGNAL(triggered()), this, SLOT(showAbout()));
menuBar()->addMenu(helpMenu);
}
示例6: QAction
void Window::configureActions()
{
showAboutAction = new QAction(tr("&About"), this);
showAboutAction->setIcon(aboutIcon);
connect(showAboutAction, SIGNAL(triggered()), this, SLOT(showAbout()));
showResultAction = new QAction(tr("&Show result"), this);
showResultAction->setIcon(logoIcon);
connect(showResultAction, SIGNAL(triggered()), this, SLOT(showResult()));
quitAction = new QAction(tr("&Quit"), this);
quitAction->setIcon(QIcon(":/images/Close.png"));
connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
startTrackingAction = new QAction(tr("Start tracking"), this);
startTrackingAction->setIcon(playIcon);
connect(startTrackingAction, SIGNAL(triggered()), this, SLOT(startTracking()));
pauseTrackingAction = new QAction(tr("Pause tracking"), this);
pauseTrackingAction->setIcon(pauseIcon);
connect(pauseTrackingAction, SIGNAL(triggered()), this, SLOT(pauseTracking()));
pauseTrackingAction->setEnabled(false);
resetTrackedTimeAction = new QAction(tr("Reset tracking result"), this);
connect(resetTrackedTimeAction, SIGNAL(triggered()), this, SLOT(resetTrackingResult()));
resetTrackedTimeAction->setEnabled(false);
}
示例7: MAction
void MainPage::createActions(void)
{
MAction *newAction = new MAction("icon-m-toolbar-add",
tr("Create a new tag"),
this);
newAction->setLocation(MAction::ToolBarLocation);
connect(newAction, SIGNAL(triggered()),
this, SLOT(createTag()));
addAction(newAction);
MAction *killallAction = new MAction(tr("Remove all tags"),
this);
killallAction->setLocation(MAction::ApplicationMenuLocation);
connect(killallAction, SIGNAL(triggered()),
this, SLOT(removeAllTags()));
addAction(killallAction);
MAction *aboutAction = new MAction(tr("About..."), this);
aboutAction->setLocation(MAction::ApplicationMenuLocation);
connect(aboutAction, SIGNAL(triggered()),
this, SLOT(showAbout()));
addAction(aboutAction);
MAction *helpAction = new MAction(tr("Instructions..."), this);
helpAction->setLocation(MAction::ApplicationMenuLocation);
connect(helpAction, SIGNAL(triggered()),
this, SLOT(showHelp()));
addAction(helpAction);
}
示例8: QMainWindow
MainWindow::MainWindow(QWidget *parent): QMainWindow(parent), ui(new Ui::MainWindow)
{
ui->setupUi(this);
/*kozepre teszi a nyito kepernyot*/
QRect available_geom = QDesktopWidget().availableGeometry();
QRect current_geom = frameGeometry();
setGeometry(available_geom.width() / 2 - current_geom.width() / 2,
available_geom.height() / 2 - current_geom.height() / 2,
current_geom.width(),
current_geom.height());
/********************************/
connect(ui->actionExit, SIGNAL(triggered()), this, SLOT(close()));
connect(ui->actionSave, SIGNAL(triggered()), this, SLOT(MenTXT()));
connect(ui->actionAbout, SIGNAL(triggered()), this, SLOT(showAbout()));
connect(ui->actionBinom, SIGNAL(triggered()), this, SLOT(binom()) );
connect(ui->actionHelp, SIGNAL(triggered()), this, SLOT(showHelp()));
connect(ui->actionPrint, SIGNAL(triggered()), this, SLOT(printIt()));
ui->mainToolBar->addAction(ui->actionSave);
ui->mainToolBar->addAction(ui->actionPrint);
ui->mainToolBar->addSeparator();
ui->mainToolBar->addAction(ui->actionBinom);
ui->mainToolBar->addSeparator();
ui->mainToolBar->addAction(ui->actionHelp);
verzio = "2010-03-03";
settingClear();
}
示例9: QAction
void DesktopMainWindow::createActions()
{
_newProjectAction = new QAction(tr("New Project"), this);
_newProjectAction->setShortcut(QKeySequence::New);
_newProjectAction->setStatusTip(tr("Start a new project"));
connect(_newProjectAction, SIGNAL(triggered()), this, SLOT(newProject()));
_openProjectAction = new QAction(QIcon(":/resources/images/open.png"), tr("&Open Project"), this);
_openProjectAction->setShortcut(QKeySequence::Open);
_openProjectAction->setStatusTip(tr("Open an existing file"));
connect(_openProjectAction, SIGNAL(triggered()), this, SLOT(openProject()));
_saveProjectAction = new QAction(QIcon(":/resources/images/save.png"), tr("&Save Project"), this);
_saveProjectAction->setShortcut(QKeySequence::Save);
_saveProjectAction->setStatusTip(tr("Save current project"));
connect(_saveProjectAction, SIGNAL(triggered()), this, SLOT(saveProject()));
_exitAction = new QAction(tr("&Exit"), this);
connect(_exitAction, SIGNAL(triggered()), this, SLOT(close()));
_undoAction = new QAction(QIcon(":/resources/images/undo.png"), tr("&Undo"), this);
connect(_undoAction, SIGNAL(triggered()), this, SLOT(undo()));
_settingsAction = new QAction(QIcon(":/resources/images/gear.png"), tr("&Options"), this);
connect(_settingsAction, SIGNAL(triggered()), this, SLOT(editSettings()));
_restoreLayoutAction = new QAction(tr("&Restore Layout"), this);
connect(_restoreLayoutAction, SIGNAL(triggered()), this, SLOT(restoreLayout()));
_aboutAction = new QAction(QIcon(":/resources/images/info.png"), tr("&About"), this);
_aboutAction->setStatusTip(tr("About Godzi"));
connect(_aboutAction, SIGNAL(triggered()), this, SLOT(showAbout()));
}
示例10: QMainWindow
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
setWindowIcon(QIcon(":icons/icon.png"));
setWindowTitle("quickly translate");
QSystemTrayIcon * trayIcon = new QSystemTrayIcon(this);
mNetManager = new QNetworkAccessManager(this);
mLangageModel = new LanguageModel;
trayIcon->setIcon(QIcon(":icons/icon.png"));
trayIcon->setContextMenu(ui->menuFile);
trayIcon->show();
ui->dockWidget->hide();
ui->sourceComboBox->setModel(mLangageModel);
ui->targetComboBox->setModel(mLangageModel);
QDesktopWidget * desktop = new QDesktopWidget;
QPoint startPos = QPoint(desktop->geometry().bottomRight() );
QPoint finalPos = desktop->geometry().center() - QPoint(width()/2,height()/2);
move(finalPos);
connect(trayIcon,SIGNAL(activated(QSystemTrayIcon::ActivationReason)),this,SLOT(trayActivated(QSystemTrayIcon::ActivationReason)));
connect(ui->actionExit,SIGNAL(triggered()),this,SLOT(exit()));
connect(ui->translateButton,SIGNAL(clicked()),this,SLOT(translate()));
connect(ui->sourceTextEdit,SIGNAL(returnPressed()),this,SLOT(translate()));
connect(ui->swapButton,SIGNAL(clicked()),this,SLOT(swapLangages()));
connect(ui->actionCopy,SIGNAL(triggered()),this,SLOT(copy()));
connect(ui->actionCut,SIGNAL(triggered()),this,SLOT(cut()));
connect(ui->actionPast,SIGNAL(triggered()),this,SLOT(past()));
connect(ui->actionPreferences,SIGNAL(triggered()),this,SLOT(showPreferences()));
connect(ui->actionAboutQt,SIGNAL(triggered()),this,SLOT(showAboutQt()));
connect(ui->actionAbout,SIGNAL(triggered()),this,SLOT(showAbout()));
connect(ui->actionTTS,SIGNAL(triggered()),this,SLOT(showTextTTS()));
connect(ui->sourceSoundButton,SIGNAL(clicked()),this,SLOT(textToSpeak()));
connect(ui->targetSoundButton,SIGNAL(clicked()),this,SLOT(textToSpeak()));
// mPropertyAnimation = new QPropertyAnimation(this, "pos");
// mPropertyAnimation->setDuration(800);
// mPropertyAnimation->setStartValue(startPos);
// mPropertyAnimation->setEndValue(finalPos);
//load default langage
QSettings settings;
QString sourceId = settings.value("source").toString();
QString targetId = settings.value("target").toString();
ui->sourceComboBox->setCurrentIndex(mLangageModel->findLangageId(sourceId));
ui->targetComboBox->setCurrentIndex(mLangageModel->findLangageId(targetId));
}
示例11: QSystemTrayIcon
/**
* Méthode initialisant l'icône de la zone de notification
*
* @return void
* @since 1.0.0
*/
void ConvertWindow::initIcon()
{
tray_icon = new QSystemTrayIcon(this);
QMenu* menu = new QMenu(this);
QAction* action_show = new QAction(QString::fromUtf8("Afficher"), this);
QAction* action_hide = new QAction(QString::fromUtf8("Réduire"), this);
QAction* action_about = new QAction(QString::fromUtf8("A propos de QOpenConvert"), this);
QAction* action_close = new QAction(QString::fromUtf8("Fermer QOpenConvert"), this);
connect(action_show, SIGNAL(triggered()), this, SLOT(showWindow()));
connect(action_hide, SIGNAL(triggered()), this, SLOT(hideWindow()));
connect(action_close, SIGNAL(triggered()), qApp, SLOT(quit()));
connect(action_about, SIGNAL(triggered()), this, SLOT(showAbout()));
connect(tray_icon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason)));
menu->addAction(action_show);
menu->addAction(action_hide);
menu->addAction(action_about);
menu->addAction(action_close);
tray_icon->setContextMenu(menu);
QIcon image = QIcon(":/images/icon.png");
tray_icon->setIcon(image);
tray_icon->show();
}
示例12: QMainWindow
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
connect(ui->actionNew_project, SIGNAL(triggered()), SLOT(addNewProject()));
connect(ui->actionOpen_project, SIGNAL(triggered()), SLOT(openProject()));
connect(ui->actionSave_project, SIGNAL(triggered()), SLOT(saveProject()));
connect(ui->actionSave_project_as, SIGNAL(triggered()), SLOT(saveProjectAs()));
connect(ui->actionClose_project, SIGNAL(triggered()), SLOT(closeProject()));
connect(ui->actionUndo, SIGNAL(triggered()), SLOT(undo()));
connect(ui->actionRedo, SIGNAL(triggered()), SLOT(redo()));
connect(ui->actionImport, SIGNAL(triggered()), SLOT(importProject()));
connect(ui->actionExport, SIGNAL(triggered()), SLOT(exportProject()));
connect(ui->actionAbout, SIGNAL(triggered()), SLOT(showAbout()));
connect(ui->actionAbout_Qt, SIGNAL(triggered()), SLOT(showAboutQt()));
QString fileName =
//"/home/gogi/Downloads/pcsc_pcsc_00001.vcf";
"G:\\pcsc_pcsc_00001.vcf";
QFile file(fileName);
//showProject(new VCardProject(file));
updateProjectState();
}
示例13: QGraphicsWidget
WelcomeBox::WelcomeBox(QWidget *parentWidget, QGraphicsItem *parentItem)
: QGraphicsWidget(parentItem)
{
m_parentWidget = parentWidget;
setMinimumSize(BOX_W, BOX_H);
setMaximumSize(BOX_W, BOX_H);
m_width = static_cast<int>(BOX_W) - 2;
m_height = static_cast<int>(BOX_H) - 2;
QGraphicsWidget *topEmpty = new QGraphicsWidget;
topEmpty->setMinimumSize(BOX_W, TEXT_BOX_H + 40);
topEmpty->setMaximumSize(topEmpty->minimumSize());
QGraphicsWidget *leftEmpty = new QGraphicsWidget;
leftEmpty->setMinimumSize(25, 20);
leftEmpty->setMaximumSize(leftEmpty->minimumSize());
QGraphicsWidget *centerEmpty = new QGraphicsWidget;
centerEmpty->setMinimumSize(100, 20);
centerEmpty->setMaximumSize(centerEmpty->minimumSize());
QGraphicsWidget *rightEmpty = new QGraphicsWidget;
rightEmpty->setMinimumSize(25, 20);
rightEmpty->setMaximumSize(rightEmpty->minimumSize());
QGraphicsGridLayout *layout = new QGraphicsGridLayout;
layout->addItem(topEmpty, 0, 0, 1, 5);
layout->addItem(leftEmpty, 1, 0);
layout->addItem(centerEmpty, 1, 2);
layout->addItem(rightEmpty, 1, 4);
GUIManager *gm = GUIManager::instance();
connect(this, SIGNAL(modeChanged(int)), gm, SLOT(setMode(int)));
// Modes
QList<Mode> modes = ModeManager::modes();
Mode mode;
QAction *act;
int i = 1;
foreach (mode, modes) {
if (mode.id != ModeManager::ID_WELCOME) {
act = new QAction(this);
act->setText(mode.name);
act->setData(mode.id);
connect(act, SIGNAL(triggered()), this, SLOT(setMode()));
layout->addItem(new WelcomeLink(act), i, 1);
i++;
}
}
// about
act = new QAction(this);
act->setText(tr("About Bmin"));
connect(act, SIGNAL(triggered()), this, SLOT(showAbout()));
layout->addItem(new WelcomeLink(act), 1, 3);
// setting layout
setLayout(layout);
}
示例14: showAuthors
void AboutDialog::buttonClicked()
{
if (ui->authorsButton->text() == tr("Authors and Contributors")) {
showAuthors();
}
else if (ui->authorsButton->text() == tr("< About QupZilla")) {
showAbout();
}
}
示例15: main
int main(void)
{
char key;
timerInitTOD();
screenInit();
progressInit();
g_strFileName[0] = '\0';
g_nDrive = *(uint8_t*)0xba;
if (g_nDrive < 8)
g_nDrive = 8;
internalCartType = INTERNAL_CART_TYPE_NONE;
g_bFastLoaderEnabled = 1;
updateFastLoaderText();
refreshMainScreen();
showAbout();
refreshMainScreen();
screenBing();
// this also makes visible 16kByte of flash memory
checkFlashType();
checkRAM();
for (;;)
{
setStatus("Ready. Press <m> for Menu.");
key = cgetc();
switch (key)
{
case 'm':
execMenu(&menuMain);
break;
case 'o':
execMenu(&menuOptions);
break;
case 'e':
execMenu(&menuExpert);
break;
case 'h':
execMenu(&menuHelp);
break;
}
}
return 0;
}