External browser testing...
This commit is contained in:
parent
2c9074b2e8
commit
15b2bfefbc
@ -8,7 +8,7 @@
|
|||||||
MessageBox::MessageBox() {
|
MessageBox::MessageBox() {
|
||||||
}
|
}
|
||||||
|
|
||||||
QMessageBox::StandardButton MessageBox::showMessageBox(QWidget *parent,
|
QMessageBox::StandardButton MessageBox:: showMessageBox(QWidget *parent,
|
||||||
QMessageBox::Icon icon,
|
QMessageBox::Icon icon,
|
||||||
const QString &title,
|
const QString &title,
|
||||||
const QString &text,
|
const QString &text,
|
||||||
|
@ -13,6 +13,8 @@ class MessageBox {
|
|||||||
// TODO: tudle metodu udelat private a udelat public
|
// TODO: tudle metodu udelat private a udelat public
|
||||||
// metody information, warning atd a ty budou tudle volat
|
// metody information, warning atd a ty budou tudle volat
|
||||||
// se spravnejma parametrama
|
// se spravnejma parametrama
|
||||||
|
// a napsat taky metodu iconifyMessageButtonBox(qmessabebuttonbox)
|
||||||
|
// ktera nahraje do daneho boxu aktualni ikony
|
||||||
static QMessageBox::StandardButton showMessageBox(QWidget *parent,
|
static QMessageBox::StandardButton showMessageBox(QWidget *parent,
|
||||||
QMessageBox::Icon icon,
|
QMessageBox::Icon icon,
|
||||||
const QString& title, const QString& text,
|
const QString& title, const QString& text,
|
||||||
|
@ -237,7 +237,7 @@ void MessagesView::openSelectedSourceArticlesExternally() {
|
|||||||
#if defined(Q_OS_LINUX)
|
#if defined(Q_OS_LINUX)
|
||||||
if (!QProcess::startDetached(browser + ' ' + arguments.arg(link))) {
|
if (!QProcess::startDetached(browser + ' ' + arguments.arg(link))) {
|
||||||
#else
|
#else
|
||||||
if (!QProcess::startDetached('\"' + browser + '\"' + ' ' + arguments.arg(link))) {
|
if (!QProcess::startDetached('\"' + browser + "\" \"" + arguments.arg(link) + "\"")) {
|
||||||
#endif
|
#endif
|
||||||
QMessageBox::critical(this,
|
QMessageBox::critical(this,
|
||||||
tr("Problem with starting external web browser"),
|
tr("Problem with starting external web browser"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user