예제 #1
0
파일: mainframe.C 프로젝트: philthiel/ball
	void Mainframe::about()
	{
		// Display about dialog
		QDialog w;
 		Ui_AboutDialog about;
		about.setupUi(&w);
		QString version = QString(tr("QT ")) + qVersion();
#ifdef BALL_QT_HAS_THREADS
		version += "(mt)";
#endif
		about.qt_version_label->setText(version);
		QFont font = about.BALLView_version_label->font();
		about.BALLView_version_label->setText(QString("BALLView ") + BALL_RELEASE_STRING);
		font.setPixelSize(18);
		about.BALLView_version_label->setFont(font);
		about.BALL_version_label->setText(__DATE__);

		// find the BALLView log
		Path p;
		String logo_path = p.find("graphics/logo.png");

		if (logo_path != "")
			about.BALLView_logo_label->setPixmap(QPixmap(logo_path.c_str()));

		w.exec(); 
	}
예제 #2
0
void MainWindow::onAbout()
{
   Ui_AboutDialog aboutDlg;
   QDialog* dlg = new QDialog(this);
   aboutDlg.setupUi(dlg);
   dlg->show();
}
예제 #3
0
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow),
    fs(0), ms(0)
{

    ui->setupUi(this);
    About = new QDialog(this);
    adialog.setupUi(About);
    adialog.aboutLabel->setText(AboutStr);
    plotZoomer = new QwtPlotZoomer(QwtPlot::xBottom, QwtPlot::yLeft,
        ui->plotWidget->canvas());
    connect(plotZoomer, SIGNAL(zoomed(const QRectF &)),
            this, SLOT(on_plotZoom()));

    ui->plotWidget->setAxisScale(QwtPlot::xBottom, 0.0, 10.0);
    ui->plotWidget->setAxisTitle(QwtPlot::xBottom, "Seconds");
    ui->plotWidget->setAxisTitle(QwtPlot::yLeft, "Threads");
}