Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wizweishijun committed Oct 17, 2019
1 parent 14e0316 commit dccf9a1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -17,6 +17,7 @@ else(APPLE)
endif(APPLE)

set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
set(CMAKE_OSX_SYSROOT "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk")

# rpath resolve.
#set(CMAKE_BUILD_WITH_INSTALL_RPATH YES) // would cause wheelEvent problem on centos/fedora when compiled with qt5
Expand Down
10 changes: 0 additions & 10 deletions src/WizConsoleDialog.cpp
Expand Up @@ -62,16 +62,6 @@ WizConsoleDialog::~WizConsoleDialog()
{
}

void WizConsoleDialog::showEvent(QShowEvent *event)
{
QScrollBar* vScroll = m_ui->editConsole->verticalScrollBar();
vScroll->setValue(vScroll->maximum());

move(parentWidget()->geometry().center() - rect().center());

QDialog::showEvent(event);
}

void WizConsoleDialog::insertLog(const QString& text)
{
QTextCursor cursor = m_ui->editConsole->textCursor();
Expand Down
3 changes: 0 additions & 3 deletions src/WizConsoleDialog.h
Expand Up @@ -18,9 +18,6 @@ class WizConsoleDialog: public QDialog
WizConsoleDialog(WizExplorerApp& app, QWidget* parent = 0);
~WizConsoleDialog();

protected:
virtual void showEvent(QShowEvent *event);

private:
WizExplorerApp& m_app;
Ui::WizConsoleDialog* m_ui;
Expand Down

0 comments on commit dccf9a1

Please sign in to comment.