Browse Source

rename button

pull/170/head
DenioD 4 years ago
parent
commit
ff064b2624
  1. 11
      src/mainwindow.cpp
  2. 5
      src/mainwindow.h

11
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);
}

5
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);

Loading…
Cancel
Save