From ff064b26243c2582113124f64f58ced80ee8df30 Mon Sep 17 00:00:00 2001 From: DenioD <41270280+DenioD@users.noreply.github.com> Date: Sun, 21 Jun 2020 22:25:40 +0200 Subject: [PATCH] rename button --- src/mainwindow.cpp | 11 +---------- src/mainwindow.h | 5 +---- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 400ee9f..e8fdf4f 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2617,7 +2617,7 @@ void MainWindow::on_givemeZaddr_clicked() }); } -void MainWindow::on_pushButton_clicked() +void MainWindow::emojiButton_clicked() { QDialog emojiDialog(this); @@ -2671,12 +2671,3 @@ QObject::connect(emoji.partying_face, &QPushButton::clicked, [&] () { emojiDialog.exec(); } -void MainWindow::on_comboBox_currentIndexChanged(const QString &arg1) -{ - - Qt::Key key = Qt::Key_1; - QKeyEvent pressEvent = QKeyEvent(QEvent::KeyPress, key, Qt::NoModifier, QKeySequence(key).toString()); - QKeyEvent releaseEvent = QKeyEvent(QEvent::KeyRelease, key, Qt::NoModifier); - QCoreApplication::sendEvent(ui->memoTxtChat, &pressEvent); - QCoreApplication::sendEvent(ui->memoTxtChat, &releaseEvent); -} diff --git a/src/mainwindow.h b/src/mainwindow.h index abc44bc..4eccfa3 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -113,10 +113,7 @@ private slots: // void on_pushButton_clicked(); - void on_pushButton_clicked(); - - void on_comboBox_currentIndexChanged(const QString &arg1); - + void emojiButton_clicked(); private: bool fileExists(QString path);