Пример #1
0
 void MainWindow::helpAbout()
 {
   QMessageBox aboutBox(this);
   aboutBox.setText(RUNMANAGER_ABOUTBOX);
   aboutBox.setStyleSheet("qproperty-alignment: AlignCenter;");
   aboutBox.setWindowTitle("About RunManager");
   aboutBox.exec();
 }
Пример #2
0
void MainWindow::displayAbout()
{
    QMessageBox aboutBox(this);
    aboutBox.setToolTip("About this Application");
    aboutBox.setText("<h2>Flow Free</h2>"
                     "<h4>By: </h4><p>&nbsp;&nbsp;&nbsp;&nbsp;Jiguanglizipao</p>"
                     "<h4>Website: </h4><p><a href=https://github.com/jiguanglizipao/FlowFree>https://github.com/jiguanglizipao/FlowFree</a></p>");
    aboutBox.setIconPixmap(QPixmap("://res/zerg.png"));
    aboutBox.exec();
}
Пример #3
0
void MainWindow::on_actionAbout_triggered()
{
  //QMessageBox::about(this,"Über QTimetableDrawer","Programm zur Erstellung eines ausdruckbaren Stundenplans aus einer online exportierten csv Datei\n\nCopyright (c) 2016 Gregor Heiming\n\n <a href=\"https://github.com/heimgreg/timetable-drawer\">QTimetableDrawer on GitHub</a>");
  QMessageBox aboutBox(this);
  aboutBox.setWindowTitle("Über QTimetableDrawer");
  aboutBox.setIconPixmap(this->windowIcon().pixmap(128));
  aboutBox.setTextFormat(Qt::RichText);
  aboutBox.setText("<h3>Über QTimetableDrawer</h3>Programm zur Erstellung eines ausdruckbaren Stundenplans aus einer online exportierten csv Datei<br><br>Copyright (c) 2016 Gregor Heiming<br><br><a href=\"https://github.com/heimgreg/timetable-drawer\">QTimetableDrawer bei GitHub</a>");
  aboutBox.exec();
}
Пример #4
0
void MainForm::showAboutDlg()
{
    QPixmap icon;
    icon.load(":/yagf.png");
    QMessageBox aboutBox(QMessageBox::NoIcon, trUtf8("About YAGF"), trUtf8("<p align=\"center\"><b>YAGF - Yet Another Graphical Front-end for cuneiform and tesseract OCR engines</b></p><p align=\"center\">Version %1</p> <p align=\"center\">Ⓒ 2009-2012 Andrei Borovsky</p> This is a free software distributed under GPL v3. Visit <a href=\"http://symmetrica.net/cuneiform-linux/yagf-en.html\">http://symmetrica.net/cuneiform-linux/yagf-en.html</a> for more details.").arg(version), QMessageBox::Ok);
    aboutBox.setIconPixmap(icon);
    QList<QLabel *> labels = aboutBox.findChildren<QLabel *>();
    for (int i = 0; i < labels.count(); i++) {
        QLabel *lab = labels.at(i);
        lab->setTextInteractionFlags(Qt::TextBrowserInteraction);
    }
    aboutBox.setTextFormat(Qt::RichText);
    aboutBox.exec();
}
Пример #5
0
void MainWindow::on_pushAbout_clicked()
{
    QMessageBox aboutBox(QMessageBox::NoIcon, "About µView", QString::fromUtf8("µView\n\nhackerspace brmlab - http://brmlab.cz/\n\nSee README for more info and COPYING for the license." ), QMessageBox::Ok, this);
    aboutBox.setIconPixmap(QPixmap(":/icons/icon.png"));
    aboutBox.exec();
}
Пример #6
0
//---------------------------------------------------------------------
/*static*/bool TAboutBox::ShowAboutBox( TComponent *Owner,  bool onStartup )
{
    std::auto_ptr <TAboutBox> aboutBox( new TAboutBox( Owner, onStartup ) );
    return aboutBox->ShowModal() == mrOk;
}