Remove button.
This commit is contained in:
parent
7f139b98b1
commit
6cee6b591a
1 changed files with 0 additions and 4 deletions
|
@ -40,7 +40,6 @@ void MessagePreviewer::createConnections() {
|
||||||
box.setDetailedText(url.toString());
|
box.setDetailedText(url.toString());
|
||||||
QAbstractButton *btn_open = box.addButton(tr("Open in external browser"), QMessageBox::ActionRole);
|
QAbstractButton *btn_open = box.addButton(tr("Open in external browser"), QMessageBox::ActionRole);
|
||||||
QAbstractButton *btn_download = box.addButton(tr("Download"), QMessageBox::ActionRole);
|
QAbstractButton *btn_download = box.addButton(tr("Download"), QMessageBox::ActionRole);
|
||||||
QAbstractButton *btn_display = box.addButton(tr("Display"), QMessageBox::ActionRole);
|
|
||||||
QAbstractButton *btn_cancel = box.addButton(QMessageBox::Cancel);
|
QAbstractButton *btn_cancel = box.addButton(QMessageBox::Cancel);
|
||||||
|
|
||||||
box.setDefaultButton(QMessageBox::Cancel);
|
box.setDefaultButton(QMessageBox::Cancel);
|
||||||
|
@ -52,9 +51,6 @@ void MessagePreviewer::createConnections() {
|
||||||
else if (box.clickedButton() == btn_download) {
|
else if (box.clickedButton() == btn_download) {
|
||||||
qApp->downloadManager()->download(url);
|
qApp->downloadManager()->download(url);
|
||||||
}
|
}
|
||||||
else if (box.clickedButton() == btn_display) {
|
|
||||||
// TODO: Zobrazit obrázek.
|
|
||||||
}
|
|
||||||
|
|
||||||
btn_download->deleteLater();
|
btn_download->deleteLater();
|
||||||
btn_open->deleteLater();
|
btn_open->deleteLater();
|
||||||
|
|
Loading…
Add table
Reference in a new issue