mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Rename LineEditFocusWidget to RDLineEdit
* It seems due to deficiencies in Qt's design, there will be a substantial need for these small custom subclasses just to add basic functionality that should have been present in the original. So we'll adopt a naming scheme of QFooBar -> RDFooBar for this 'almost the same widget' type subclassing, compared to more custom/changed ones.
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
#include "LineEditFocusWidget.h"
|
||||
|
||||
LineEditFocusWidget::LineEditFocusWidget(QWidget *parent) : QLineEdit(parent)
|
||||
{
|
||||
}
|
||||
|
||||
LineEditFocusWidget::~LineEditFocusWidget()
|
||||
{
|
||||
}
|
||||
|
||||
void LineEditFocusWidget::focusInEvent(QFocusEvent *e)
|
||||
{
|
||||
QLineEdit::focusInEvent(e);
|
||||
emit(enter());
|
||||
}
|
||||
|
||||
void LineEditFocusWidget::focusOutEvent(QFocusEvent *e)
|
||||
{
|
||||
QLineEdit::focusOutEvent(e);
|
||||
emit(leave());
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
#include "RDLineEdit.h"
|
||||
|
||||
RDLineEdit::RDLineEdit(QWidget *parent) : QLineEdit(parent)
|
||||
{
|
||||
}
|
||||
|
||||
RDLineEdit::~RDLineEdit()
|
||||
{
|
||||
}
|
||||
|
||||
void RDLineEdit::focusInEvent(QFocusEvent *e)
|
||||
{
|
||||
QLineEdit::focusInEvent(e);
|
||||
emit(enter());
|
||||
}
|
||||
|
||||
void RDLineEdit::focusOutEvent(QFocusEvent *e)
|
||||
{
|
||||
QLineEdit::focusOutEvent(e);
|
||||
emit(leave());
|
||||
}
|
||||
@@ -1,13 +1,13 @@
|
||||
#pragma once
|
||||
#include <QLineEdit>
|
||||
|
||||
class LineEditFocusWidget : public QLineEdit
|
||||
class RDLineEdit : public QLineEdit
|
||||
{
|
||||
private:
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit LineEditFocusWidget(QWidget *parent = 0);
|
||||
~LineEditFocusWidget();
|
||||
explicit RDLineEdit(QWidget *parent = 0);
|
||||
~RDLineEdit();
|
||||
|
||||
signals:
|
||||
void enter();
|
||||
@@ -46,8 +46,8 @@ EventBrowser::EventBrowser(Core *core, QWidget *parent)
|
||||
|
||||
QObject::connect(ui->closeFind, &QToolButton::clicked, this, &EventBrowser::on_HideFindJump);
|
||||
QObject::connect(ui->closeJump, &QToolButton::clicked, this, &EventBrowser::on_HideFindJump);
|
||||
QObject::connect(ui->jumpToEID, &LineEditFocusWidget::leave, this, &EventBrowser::on_HideFindJump);
|
||||
QObject::connect(ui->findEvent, &LineEditFocusWidget::leave, this, &EventBrowser::on_HideFindJump);
|
||||
QObject::connect(ui->jumpToEID, &RDLineEdit::leave, this, &EventBrowser::on_HideFindJump);
|
||||
QObject::connect(ui->findEvent, &RDLineEdit::leave, this, &EventBrowser::on_HideFindJump);
|
||||
ui->jumpStrip->hide();
|
||||
ui->findStrip->hide();
|
||||
ui->bookmarkStrip->hide();
|
||||
|
||||
@@ -236,7 +236,7 @@
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="LineEditFocusWidget" name="jumpToEID">
|
||||
<widget class="RDLineEdit" name="jumpToEID">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
@@ -349,7 +349,7 @@
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="LineEditFocusWidget" name="findEvent">
|
||||
<widget class="RDLineEdit" name="findEvent">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
@@ -559,9 +559,9 @@
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>LineEditFocusWidget</class>
|
||||
<class>RDLineEdit</class>
|
||||
<extends>QLineEdit</extends>
|
||||
<header>Widgets/LineEditFocusWidget.h</header>
|
||||
<header>Widgets/RDLineEdit.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
|
||||
@@ -90,7 +90,7 @@ SOURCES += Code/main.cpp \
|
||||
3rdparty/toolwindowmanager/ToolWindowManagerWrapper.cpp \
|
||||
Code/RenderManager.cpp \
|
||||
Code/Core.cpp \
|
||||
Widgets/LineEditFocusWidget.cpp \
|
||||
Widgets/RDLineEdit.cpp \
|
||||
3rdparty/flowlayout/FlowLayout.cpp \
|
||||
Widgets/ResourcePreview.cpp
|
||||
|
||||
@@ -104,7 +104,7 @@ HEADERS += Windows/MainWindow.h \
|
||||
3rdparty/toolwindowmanager/ToolWindowManagerWrapper.h \
|
||||
Code/Core.h \
|
||||
Code/RenderManager.h \
|
||||
Widgets/LineEditFocusWidget.h \
|
||||
Widgets/RDLineEdit.h \
|
||||
3rdparty/flowlayout/FlowLayout.h \
|
||||
Widgets/ResourcePreview.h
|
||||
|
||||
|
||||
@@ -280,7 +280,7 @@
|
||||
<ClCompile Include="generated\moc_Core.cpp" />
|
||||
<ClCompile Include="generated\moc_CustomPaintWidget.cpp" />
|
||||
<ClCompile Include="generated\moc_EventBrowser.cpp" />
|
||||
<ClCompile Include="generated\moc_LineEditFocusWidget.cpp" />
|
||||
<ClCompile Include="generated\moc_RDLineEdit.cpp" />
|
||||
<ClCompile Include="generated\moc_MainWindow.cpp" />
|
||||
<ClCompile Include="generated\moc_ResourcePreview.cpp" />
|
||||
<ClCompile Include="generated\moc_TextureViewer.cpp" />
|
||||
@@ -296,7 +296,7 @@
|
||||
<ClCompile Include="3rdparty\flowlayout\FlowLayout.cpp">
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Widgets\LineEditFocusWidget.cpp" />
|
||||
<ClCompile Include="Widgets\RDLineEdit.cpp" />
|
||||
<ClCompile Include="Windows\MainWindow.cpp" />
|
||||
<ClCompile Include="Code\RenderManager.cpp" />
|
||||
<ClCompile Include="Windows\TextureViewer.cpp" />
|
||||
@@ -323,7 +323,7 @@
|
||||
<ClInclude Include="Widgets\CustomPaintWidget.h" />
|
||||
<ClInclude Include="Windows\EventBrowser.h" />
|
||||
<ClInclude Include="3rdparty\flowlayout\FlowLayout.h" />
|
||||
<ClInclude Include="Widgets\LineEditFocusWidget.h" />
|
||||
<ClInclude Include="Widgets\RDLineEdit.h" />
|
||||
<ClInclude Include="Windows\MainWindow.h" />
|
||||
<ClInclude Include="Code\RenderManager.h" />
|
||||
<ClInclude Include="Windows\TextureViewer.h" />
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<ClCompile Include="generated\moc_EventBrowser.cpp">
|
||||
<Filter>Generated Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="generated\moc_LineEditFocusWidget.cpp">
|
||||
<ClCompile Include="generated\moc_RDLineEdit.cpp">
|
||||
<Filter>Generated Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="generated\moc_MainWindow.cpp">
|
||||
@@ -129,7 +129,7 @@
|
||||
<ClCompile Include="Windows\EventBrowser.cpp">
|
||||
<Filter>Windows</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Widgets\LineEditFocusWidget.cpp">
|
||||
<ClCompile Include="Widgets\RDLineEdit.cpp">
|
||||
<Filter>Widgets</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Code\RenderManager.cpp">
|
||||
@@ -161,7 +161,7 @@
|
||||
<ClInclude Include="Windows\EventBrowser.h">
|
||||
<Filter>Windows</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Widgets\LineEditFocusWidget.h">
|
||||
<ClInclude Include="Widgets\RDLineEdit.h">
|
||||
<Filter>Widgets</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Windows\MainWindow.h">
|
||||
|
||||
Reference in New Issue
Block a user