mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
Add an about dialog so we can know versions that are being used.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16205 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include <QMessageBox>
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include <switch_version.h>
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
@@ -88,6 +89,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
connect(ui->listCalls, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(callListDoubleClick(QListWidgetItem*)));
|
||||
connect(ui->action_Preferences, SIGNAL(triggered()), this, SLOT(prefTriggered()));
|
||||
connect(ui->action_Exit, SIGNAL(triggered()), this, SLOT(close()));
|
||||
connect(ui->actionAbout, SIGNAL(triggered()), this, SLOT(showAbout()));
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
@@ -332,3 +334,18 @@ void MainWindow::changeEvent(QEvent *e)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::showAbout()
|
||||
{
|
||||
QString result;
|
||||
g_FSHost.sendCmd("version", "", &result);
|
||||
|
||||
QMessageBox::about(this, tr("About FSComm"),
|
||||
tr("<h2>FSComm</h2>"
|
||||
"<p>Author: João Mesquita <jmesquita@freeswitch.org>"
|
||||
"<p>FsComm is a softphone based on libfreeswitch."
|
||||
"<p>The FreeSWITCH™ images and name are trademark of"
|
||||
" Anthony Minessale II, primary author of FreeSWITCH™."
|
||||
"<p>Compiled FSComm version: %1"
|
||||
"<p>%2").arg(SWITCH_VERSION_FULL, result));
|
||||
}
|
||||
|
Reference in New Issue
Block a user