mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 12:12:50 +01:00
Qt: fix data type of find_dialog text edits
This commit is contained in:
parent
fd6829f757
commit
c108b31954
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
|
||||||
find_dialog::find_dialog(QTextEdit* edit, QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f), m_text_edit(edit)
|
find_dialog::find_dialog(QPlainTextEdit* edit, QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f), m_text_edit(edit)
|
||||||
{
|
{
|
||||||
setWindowTitle(tr("Find string"));
|
setWindowTitle(tr("Find string"));
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QTextEdit>
|
#include <QPlainTextEdit>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
@ -11,14 +11,14 @@ class find_dialog : public QDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
find_dialog(QTextEdit* edit, QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
|
find_dialog(QPlainTextEdit* edit, QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_count_lines = 0;
|
int m_count_lines = 0;
|
||||||
int m_count_total = 0;
|
int m_count_total = 0;
|
||||||
QLabel* m_label_count_lines;
|
QLabel* m_label_count_lines;
|
||||||
QLabel* m_label_count_total;
|
QLabel* m_label_count_total;
|
||||||
QTextEdit* m_text_edit;
|
QPlainTextEdit* m_text_edit;
|
||||||
QLineEdit* m_find_bar;
|
QLineEdit* m_find_bar;
|
||||||
QPushButton* m_find_first;
|
QPushButton* m_find_first;
|
||||||
QPushButton* m_find_last;
|
QPushButton* m_find_last;
|
||||||
|
@ -897,7 +897,7 @@ bool log_frame::eventFilter(QObject* object, QEvent* event)
|
|||||||
if (m_find_dialog && m_find_dialog->isVisible())
|
if (m_find_dialog && m_find_dialog->isVisible())
|
||||||
m_find_dialog->close();
|
m_find_dialog->close();
|
||||||
|
|
||||||
m_find_dialog.reset(new find_dialog(static_cast<QTextEdit*>(object), this));
|
m_find_dialog.reset(new find_dialog(static_cast<QPlainTextEdit*>(object), this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -455,7 +455,7 @@ bool log_viewer::eventFilter(QObject* object, QEvent* event)
|
|||||||
if (m_find_dialog && m_find_dialog->isVisible())
|
if (m_find_dialog && m_find_dialog->isVisible())
|
||||||
m_find_dialog->close();
|
m_find_dialog->close();
|
||||||
|
|
||||||
m_find_dialog.reset(new find_dialog(static_cast<QTextEdit*>(object), this));
|
m_find_dialog.reset(new find_dialog(static_cast<QPlainTextEdit*>(object), this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user