mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-05 23:49:20 +00:00
Port to new connect api
This commit is contained in:
parent
e176acdc40
commit
c4f224f1e8
|
@ -266,8 +266,8 @@ EditAnnotToolDialog::EditAnnotToolDialog( QWidget *parent, const QDomElement &in
|
|||
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
|
||||
okButton->setDefault(true);
|
||||
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
|
||||
connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
connect(buttonBox, &QDialogButtonBox::accepted, this, &EditAnnotToolDialog::accept);
|
||||
connect(buttonBox, &QDialogButtonBox::rejected, this, &EditAnnotToolDialog::reject);
|
||||
okButton->setDefault(true);
|
||||
|
||||
QLabel * tmplabel;
|
||||
|
|
|
@ -29,8 +29,8 @@ ChooseEngineDialog::ChooseEngineDialog( const QStringList &generators, const QMi
|
|||
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
|
||||
okButton->setDefault(true);
|
||||
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
|
||||
connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
connect(buttonBox, &QDialogButtonBox::accepted, this, &ChooseEngineDialog::accept);
|
||||
connect(buttonBox, &QDialogButtonBox::rejected, this, &ChooseEngineDialog::reject);
|
||||
okButton->setDefault(true);
|
||||
QWidget *main = new QWidget( this );
|
||||
m_widget = new Ui_ChooseEngineWidget();
|
||||
|
|
|
@ -29,9 +29,10 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
|
||||
KAboutData aboutData = okularAboutData();
|
||||
|
||||
QApplication app(argc, argv);
|
||||
app.setApplicationName(aboutData.applicationData().componentName());
|
||||
app.setApplicationDisplayName(aboutData.applicationData().displayName());
|
||||
app.setApplicationVersion(aboutData.version());
|
||||
|
|
Loading…
Reference in a new issue