mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-22 06:33:46 +00:00
restore the 'responsive' functionality (closes issue #97)
This commit is contained in:
parent
bee9d28683
commit
400f6be164
@ -51,7 +51,7 @@ SOURCES += \
|
|||||||
widgets/commentswidget.cpp \
|
widgets/commentswidget.cpp \
|
||||||
widgets/stringswidget.cpp \
|
widgets/stringswidget.cpp \
|
||||||
widgets/flagswidget.cpp \
|
widgets/flagswidget.cpp \
|
||||||
widgets/memwidget/memorywidget.cpp \
|
widgets/memorywidget.cpp \
|
||||||
qrdisasm.cpp \
|
qrdisasm.cpp \
|
||||||
widgets/sdbdock.cpp \
|
widgets/sdbdock.cpp \
|
||||||
analthread.cpp \
|
analthread.cpp \
|
||||||
@ -86,7 +86,7 @@ HEADERS += \
|
|||||||
widgets/commentswidget.h \
|
widgets/commentswidget.h \
|
||||||
widgets/stringswidget.h \
|
widgets/stringswidget.h \
|
||||||
widgets/flagswidget.h \
|
widgets/flagswidget.h \
|
||||||
widgets/memwidget/memorywidget.h \
|
widgets/memorywidget.h \
|
||||||
qrdisasm.h \
|
qrdisasm.h \
|
||||||
widgets/sdbdock.h \
|
widgets/sdbdock.h \
|
||||||
analthread.h \
|
analthread.h \
|
||||||
@ -114,7 +114,7 @@ FORMS += \
|
|||||||
widgets/commentswidget.ui \
|
widgets/commentswidget.ui \
|
||||||
widgets/stringswidget.ui \
|
widgets/stringswidget.ui \
|
||||||
widgets/flagswidget.ui \
|
widgets/flagswidget.ui \
|
||||||
widgets/memwidget/memorywidget.ui \
|
widgets/memorywidget.ui \
|
||||||
widgets/sdbdock.ui \
|
widgets/sdbdock.ui \
|
||||||
dialogs/commentsdialog.ui \
|
dialogs/commentsdialog.ui \
|
||||||
widgets/sidebar.ui \
|
widgets/sidebar.ui \
|
@ -15,7 +15,7 @@
|
|||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
#include "qrcore.h"
|
#include "qrcore.h"
|
||||||
|
|
||||||
#include "widgets/memwidget/memorywidget.h"
|
#include "widgets/memorywidget.h"
|
||||||
#include "widgets/functionswidget.h"
|
#include "widgets/functionswidget.h"
|
||||||
#include "widgets/sectionswidget.h"
|
#include "widgets/sectionswidget.h"
|
||||||
#include "widgets/commentswidget.h"
|
#include "widgets/commentswidget.h"
|
||||||
|
@ -206,7 +206,7 @@ void OptionsDialog::on_okButton_clicked()
|
|||||||
// connect signal/slot
|
// connect signal/slot
|
||||||
|
|
||||||
int level = 0;
|
int level = 0;
|
||||||
if (anal_level == true)
|
if (anal_level)
|
||||||
{
|
{
|
||||||
level = ui->analSlider->value();
|
level = ui->analSlider->value();
|
||||||
}
|
}
|
||||||
|
@ -26,9 +26,6 @@ CommentsWidget::CommentsWidget(MainWindow *main, QWidget *parent) :
|
|||||||
|
|
||||||
// Hide the buttons frame
|
// Hide the buttons frame
|
||||||
ui->frame->hide();
|
ui->frame->hide();
|
||||||
|
|
||||||
// Resize eventfilter
|
|
||||||
ui->commentsTreeWidget->viewport()->installEventFilter(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CommentsWidget::~CommentsWidget()
|
CommentsWidget::~CommentsWidget()
|
||||||
@ -126,27 +123,20 @@ void CommentsWidget::on_actionVertical_triggered()
|
|||||||
ui->tabWidget->setCurrentIndex(1);
|
ui->tabWidget->setCurrentIndex(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CommentsWidget::eventFilter(QObject *obj, QEvent *event)
|
void CommentsWidget::resizeEvent(QResizeEvent *event)
|
||||||
{
|
{
|
||||||
if (this->main->responsive)
|
if(main->responsive && isVisible())
|
||||||
{
|
{
|
||||||
if (event->type() == QEvent::Resize && obj == this && this->isVisible())
|
if (event->size().width() >= event->size().height())
|
||||||
{
|
{
|
||||||
QResizeEvent *resizeEvent = static_cast<QResizeEvent *>(event);
|
// Set horizontal view (list)
|
||||||
//qDebug("Dock Resized (New Size) - Width: %d Height: %d",
|
on_actionHorizontal_triggered();
|
||||||
// resizeEvent->size().width(),
|
}
|
||||||
// resizeEvent->size().height());
|
else
|
||||||
if (resizeEvent->size().width() >= resizeEvent->size().height())
|
{
|
||||||
{
|
// Set vertical view (Tree)
|
||||||
// Set horizontal view (list)
|
on_actionVertical_triggered();
|
||||||
this->on_actionHorizontal_triggered();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Set vertical view (Tree)
|
|
||||||
this->on_actionVertical_triggered();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return QDockWidget::eventFilter(obj, event);
|
QDockWidget::resizeEvent(event);
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,9 @@ public:
|
|||||||
QTreeWidget *nestedCommentsTreeWidget;
|
QTreeWidget *nestedCommentsTreeWidget;
|
||||||
void refreshTree();
|
void refreshTree();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_commentsTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
void on_commentsTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
||||||
|
|
||||||
@ -37,8 +40,6 @@ private slots:
|
|||||||
|
|
||||||
void on_actionVertical_triggered();
|
void on_actionVertical_triggered();
|
||||||
|
|
||||||
bool eventFilter(QObject *obj, QEvent *event) override;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::CommentsWidget *ui;
|
Ui::CommentsWidget *ui;
|
||||||
|
|
||||||
|
@ -37,9 +37,6 @@ FunctionsWidget::FunctionsWidget(MainWindow *main, QWidget *parent) :
|
|||||||
this->setContextMenuPolicy(Qt::CustomContextMenu);
|
this->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
connect(this, SIGNAL(customContextMenuRequested(const QPoint &)),
|
connect(this, SIGNAL(customContextMenuRequested(const QPoint &)),
|
||||||
this, SLOT(showTitleContextMenu(const QPoint &)));
|
this, SLOT(showTitleContextMenu(const QPoint &)));
|
||||||
|
|
||||||
// Resize eventfilter
|
|
||||||
ui->functionsTreeWidget->viewport()->installEventFilter(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FunctionsWidget::~FunctionsWidget()
|
FunctionsWidget::~FunctionsWidget()
|
||||||
@ -395,27 +392,20 @@ void FunctionsWidget::on_nestedFunctionsTree_itemDoubleClicked(QTreeWidgetItem *
|
|||||||
this->main->memoryDock->raise();
|
this->main->memoryDock->raise();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FunctionsWidget::eventFilter(QObject *obj, QEvent *event)
|
void FunctionsWidget::resizeEvent(QResizeEvent *event)
|
||||||
{
|
{
|
||||||
if (this->main->responsive)
|
if(main->responsive && isVisible())
|
||||||
{
|
{
|
||||||
if (event->type() == QEvent::Resize && obj == this && this->isVisible() == true)
|
if (event->size().width() >= event->size().height())
|
||||||
{
|
{
|
||||||
QResizeEvent *resizeEvent = static_cast<QResizeEvent *>(event);
|
// Set horizontal view (list)
|
||||||
//qDebug("Dock Resized (New Size) - Width: %d Height: %d",
|
on_actionHorizontal_triggered();
|
||||||
// resizeEvent->size().width(),
|
}
|
||||||
// resizeEvent->size().height());
|
else
|
||||||
if (resizeEvent->size().width() >= resizeEvent->size().height())
|
{
|
||||||
{
|
// Set vertical view (Tree)
|
||||||
// Set horizontal view (list)
|
on_actionVertical_triggered();
|
||||||
this->on_actionHorizontal_triggered();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Set vertical view (Tree)
|
|
||||||
this->on_actionVertical_triggered();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return QDockWidget::eventFilter(obj, event);
|
QDockWidget::resizeEvent(event);
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,8 @@ private slots:
|
|||||||
|
|
||||||
void on_nestedFunctionsTree_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
void on_nestedFunctionsTree_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
||||||
|
|
||||||
bool eventFilter(QObject *obj, QEvent *event) override;
|
protected:
|
||||||
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::FunctionsWidget *ui;
|
Ui::FunctionsWidget *ui;
|
||||||
|
@ -106,7 +106,10 @@ MemoryWidget::MemoryWidget(MainWindow *main) :
|
|||||||
ui->actionSeparate_bytes->setDisabled(true);
|
ui->actionSeparate_bytes->setDisabled(true);
|
||||||
ui->actionRight_align_bytes->setDisabled(true);
|
ui->actionRight_align_bytes->setDisabled(true);
|
||||||
|
|
||||||
// Resize eventfilter
|
// Event filter to intercept double clicks in the textbox (TODO: this does not work!)
|
||||||
|
ui->disasTextEdit_2->setMouseTracking(true);
|
||||||
|
ui->disasTextEdit_2->viewport()->setMouseTracking(true);
|
||||||
|
ui->disasTextEdit_2->installEventFilter(this);
|
||||||
ui->disasTextEdit_2->viewport()->installEventFilter(this);
|
ui->disasTextEdit_2->viewport()->installEventFilter(this);
|
||||||
|
|
||||||
// Set Splitter stretch factor
|
// Set Splitter stretch factor
|
||||||
@ -1729,46 +1732,49 @@ void MemoryWidget::on_previewToolButton_2_clicked()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MemoryWidget::eventFilter(QObject *obj, QEvent *event)
|
void MemoryWidget::resizeEvent(QResizeEvent *event)
|
||||||
{
|
{
|
||||||
if (event->type() == QEvent::Resize && obj == this && this->isVisible())
|
if(main->responsive && isVisible())
|
||||||
{
|
{
|
||||||
if (this->main->responsive)
|
if (event->size().width() <= 1150)
|
||||||
{
|
{
|
||||||
QResizeEvent *resizeEvent = static_cast<QResizeEvent *>(event);
|
ui->frame_3->setVisible(false);
|
||||||
//qDebug("Dock Resized (New Size) - Width: %d Height: %d",
|
ui->memPreviewTab->setVisible(false);
|
||||||
// resizeEvent->size().width(),
|
ui->previewToolButton_2->setChecked(false);
|
||||||
// resizeEvent->size().height());
|
if (event->size().width() <= 950)
|
||||||
if (resizeEvent->size().width() <= 1150)
|
|
||||||
{
|
{
|
||||||
ui->frame_3->setVisible(false);
|
ui->memSideTabWidget_2->hide();
|
||||||
ui->memPreviewTab->setVisible(false);
|
ui->hexSideTab_2->hide();
|
||||||
ui->previewToolButton_2->setChecked(false);
|
ui->memSideToolButton->setChecked(true);
|
||||||
if (resizeEvent->size().width() <= 950)
|
|
||||||
{
|
|
||||||
ui->memSideTabWidget_2->hide();
|
|
||||||
ui->hexSideTab_2->hide();
|
|
||||||
ui->memSideToolButton->setChecked(true);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ui->memSideTabWidget_2->show();
|
|
||||||
ui->hexSideTab_2->show();
|
|
||||||
ui->memSideToolButton->setChecked(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ui->frame_3->setVisible(true);
|
ui->memSideTabWidget_2->show();
|
||||||
ui->memPreviewTab->setVisible(true);
|
ui->hexSideTab_2->show();
|
||||||
ui->previewToolButton_2->setChecked(true);
|
ui->memSideToolButton->setChecked(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ui->frame_3->setVisible(true);
|
||||||
|
ui->memPreviewTab->setVisible(true);
|
||||||
|
ui->previewToolButton_2->setChecked(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if ((obj == ui->disasTextEdit_2 || obj == ui->disasTextEdit_2->viewport()) && event->type() == QEvent::MouseButtonDblClick)
|
QDockWidget::resizeEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool MemoryWidget::eventFilter(QObject *obj, QEvent *event)
|
||||||
|
{
|
||||||
|
if(event->type() == QEvent::MouseButtonDblClick || event->type() == QEvent::MouseButtonPress)
|
||||||
|
QMessageBox::information(this, "double", "double");
|
||||||
|
qDebug() << "MemoryWidget::eventFilter";
|
||||||
|
qDebug() << obj;
|
||||||
|
qDebug() << event;
|
||||||
|
if ((obj == ui->disasTextEdit_2 || obj == ui->disasTextEdit_2->viewport()) && event->type() == QEvent::MouseButtonDblClick)
|
||||||
{
|
{
|
||||||
QMouseEvent *mouseEvent = static_cast<QMouseEvent *>(event);
|
QMouseEvent *mouseEvent = static_cast<QMouseEvent *>(event);
|
||||||
//qDebug()<<QString("Click location: (%1,%2)").arg(mouseEvent->x()).arg(mouseEvent->y());
|
qDebug()<<QString("Click location: (%1,%2)").arg(mouseEvent->x()).arg(mouseEvent->y());
|
||||||
QTextCursor cursor = ui->disasTextEdit_2->cursorForPosition(QPoint(mouseEvent->x(), mouseEvent->y()));
|
QTextCursor cursor = ui->disasTextEdit_2->cursorForPosition(QPoint(mouseEvent->x(), mouseEvent->y()));
|
||||||
cursor.select(QTextCursor::LineUnderCursor);
|
cursor.select(QTextCursor::LineUnderCursor);
|
||||||
QString lastline = cursor.selectedText();
|
QString lastline = cursor.selectedText();
|
@ -88,6 +88,7 @@ public slots:
|
|||||||
void frameLoadFinished(bool ok);
|
void frameLoadFinished(bool ok);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
bool eventFilter(QObject *obj, QEvent *event) override;
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
@ -120,7 +120,7 @@ QToolTip {
|
|||||||
<string notr="true"/>
|
<string notr="true"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../../resources.qrc">
|
<iconset resource="../resources.qrc">
|
||||||
<normaloff>:/new/prefix1/img/icons/disas_light.png</normaloff>
|
<normaloff>:/new/prefix1/img/icons/disas_light.png</normaloff>
|
||||||
<activeon>:/new/prefix1/img/icons/disas_white.png</activeon>:/new/prefix1/img/icons/disas_light.png</iconset>
|
<activeon>:/new/prefix1/img/icons/disas_white.png</activeon>:/new/prefix1/img/icons/disas_light.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
@ -180,7 +180,7 @@ QToolTip {
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../../resources.qrc">
|
<iconset resource="../resources.qrc">
|
||||||
<normaloff>:/new/prefix1/img/icons/graph_light.png</normaloff>
|
<normaloff>:/new/prefix1/img/icons/graph_light.png</normaloff>
|
||||||
<activeon>:/new/prefix1/img/icons/graph_white.png</activeon>:/new/prefix1/img/icons/graph_light.png</iconset>
|
<activeon>:/new/prefix1/img/icons/graph_white.png</activeon>:/new/prefix1/img/icons/graph_light.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
@ -237,7 +237,7 @@ QToolTip {
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../../resources.qrc">
|
<iconset resource="../resources.qrc">
|
||||||
<normaloff>:/new/prefix1/img/icons/hexdump_light.png</normaloff>
|
<normaloff>:/new/prefix1/img/icons/hexdump_light.png</normaloff>
|
||||||
<activeon>:/new/prefix1/img/icons/hexdump_white.png</activeon>:/new/prefix1/img/icons/hexdump_light.png</iconset>
|
<activeon>:/new/prefix1/img/icons/hexdump_white.png</activeon>:/new/prefix1/img/icons/hexdump_light.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
@ -313,7 +313,7 @@ QToolTip {
|
|||||||
<string notr="true"/>
|
<string notr="true"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../../resources.qrc">
|
<iconset resource="../resources.qrc">
|
||||||
<normaloff>:/new/prefix1/img/icons/eye.png</normaloff>
|
<normaloff>:/new/prefix1/img/icons/eye.png</normaloff>
|
||||||
<activeon>:/new/prefix1/img/icons/eye_white.png</activeon>:/new/prefix1/img/icons/eye.png</iconset>
|
<activeon>:/new/prefix1/img/icons/eye_white.png</activeon>:/new/prefix1/img/icons/eye.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
@ -373,7 +373,7 @@ QToolTip {
|
|||||||
<string notr="true"/>
|
<string notr="true"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../../resources.qrc">
|
<iconset resource="../resources.qrc">
|
||||||
<normaloff>:/new/prefix1/img/icons/right.png</normaloff>:/new/prefix1/img/icons/right.png</iconset>
|
<normaloff>:/new/prefix1/img/icons/right.png</normaloff>:/new/prefix1/img/icons/right.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@ -424,7 +424,7 @@ QToolTip {
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../../resources.qrc">
|
<iconset resource="../resources.qrc">
|
||||||
<normaloff>:/new/prefix1/img/icons/cog_light.png</normaloff>:/new/prefix1/img/icons/cog_light.png</iconset>
|
<normaloff>:/new/prefix1/img/icons/cog_light.png</normaloff>:/new/prefix1/img/icons/cog_light.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="popupMode">
|
<property name="popupMode">
|
||||||
@ -1499,7 +1499,7 @@ QToolTip {
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../../resources.qrc">
|
<iconset resource="../resources.qrc">
|
||||||
<normaloff>:/new/prefix1/img/icons/radar.png</normaloff>
|
<normaloff>:/new/prefix1/img/icons/radar.png</normaloff>
|
||||||
<activeon>:/new/prefix1/img/icons/radar_white.png</activeon>:/new/prefix1/img/icons/radar.png</iconset>
|
<activeon>:/new/prefix1/img/icons/radar_white.png</activeon>:/new/prefix1/img/icons/radar.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
@ -1560,7 +1560,7 @@ QToolTip {
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../../resources.qrc">
|
<iconset resource="../resources.qrc">
|
||||||
<normaloff>:/new/prefix1/img/icons/polar.png</normaloff>
|
<normaloff>:/new/prefix1/img/icons/polar.png</normaloff>
|
||||||
<activeon>:/new/prefix1/img/icons/polar_white.png</activeon>:/new/prefix1/img/icons/polar.png</iconset>
|
<activeon>:/new/prefix1/img/icons/polar_white.png</activeon>:/new/prefix1/img/icons/polar.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
@ -3042,7 +3042,7 @@ QToolTip {
|
|||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../../resources.qrc"/>
|
<include location="../resources.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
<buttongroups>
|
<buttongroups>
|
@ -98,27 +98,20 @@ void SectionsWidget::adjustColumns()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SectionsWidget::eventFilter(QObject *obj, QEvent *event)
|
void SectionsWidget::resizeEvent(QResizeEvent *event)
|
||||||
{
|
{
|
||||||
if (this->main->responsive)
|
if(main->responsive && isVisible())
|
||||||
{
|
{
|
||||||
if (event->type() == QEvent::Resize && obj == this && this->isVisible())
|
if (event->size().width() >= event->size().height())
|
||||||
{
|
{
|
||||||
QResizeEvent *resizeEvent = static_cast<QResizeEvent *>(event);
|
// Set horizontal view (list)
|
||||||
//qDebug("Dock Resized (New Size) - Width: %d Height: %d",
|
main->on_actionSectionsHorizontal_triggered();
|
||||||
// resizeEvent->size().width(),
|
}
|
||||||
// resizeEvent->size().height());
|
else
|
||||||
if (resizeEvent->size().width() >= resizeEvent->size().height())
|
{
|
||||||
{
|
// Set vertical view (Tree)
|
||||||
// Set horizontal view (list)
|
main->on_actionSectionsVertical_triggered();
|
||||||
this->main->on_actionSectionsHorizontal_triggered();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Set vertical view (Tree)
|
|
||||||
this->main->on_actionSectionsVertical_triggered();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return QSplitter::eventFilter(obj, event);
|
QWidget::resizeEvent(event);
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,8 @@ public:
|
|||||||
void adjustColumns();
|
void adjustColumns();
|
||||||
QTreeWidget *tree;
|
QTreeWidget *tree;
|
||||||
|
|
||||||
private slots:
|
protected:
|
||||||
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//void setupModel();
|
//void setupModel();
|
||||||
@ -40,7 +41,6 @@ private:
|
|||||||
QAbstractItemView *pieChart;
|
QAbstractItemView *pieChart;
|
||||||
QItemSelectionModel *selectionModel;
|
QItemSelectionModel *selectionModel;
|
||||||
MainWindow *main;
|
MainWindow *main;
|
||||||
bool eventFilter(QObject *obj, QEvent *event) override;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SECTIONSWIDGET_H
|
#endif // SECTIONSWIDGET_H
|
||||||
|
Loading…
Reference in New Issue
Block a user