forked from altairwei/WizNotePlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
129 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#include "WizDevToolsDialog.h" | ||
|
||
#include "sync/WizToken.h" | ||
#include "WizMainWindow.h" | ||
#include "share/WizGlobal.h" | ||
#include "utils/WizPathResolve.h" | ||
#include "widgets/WizLocalProgressWebView.h" | ||
|
||
#include <QMovie> | ||
#include <QVBoxLayout> | ||
#include <QLabel> | ||
#include <QPushButton> | ||
#include <QApplication> | ||
#include <QNetworkReply> | ||
#include <QWebEngineView> | ||
#include "share/WizWebEngineView.h" | ||
|
||
|
||
WizDevToolsDialog::WizDevToolsDialog(QSize sz, QWidget *parent) | ||
: WizWebEngineViewContainerDialog(parent) | ||
, m_web(new WizWebEngineView(this)) | ||
{ | ||
// 设置长宽和边界 | ||
setContentsMargins(0, 0, 0, 0); | ||
setFixedSize(sz); | ||
|
||
QPalette pal = palette(); | ||
pal.setBrush(backgroundRole(), QBrush("#FFFFFF")); | ||
setPalette(pal); | ||
// | ||
|
||
// 将页面嵌入布局 | ||
QVBoxLayout* layout = new QVBoxLayout(this); | ||
layout->setContentsMargins(0, 0, 0, 0); | ||
layout->setSpacing(0); | ||
layout->addWidget(m_web); | ||
setLayout(layout); | ||
} | ||
|
||
WizWebEngineView* WizDevToolsDialog::getWeb() { | ||
return m_web; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef WIZDEVTOOLSDIALOG_H | ||
#define WIZDEVTOOLSDIALOG_H | ||
|
||
#include <QDialog> | ||
#include "share/WizWebEngineView.h" | ||
|
||
class QUrl; | ||
class QLabel; | ||
class QMovie; | ||
class WizWebEngineView; | ||
class QPushButton; | ||
class QNetworkReply; | ||
class WizLocalProgressWebView; | ||
|
||
class WizDevToolsDialog : public WizWebEngineViewContainerDialog | ||
{ | ||
Q_OBJECT | ||
private: | ||
WizWebEngineView* m_web; | ||
public: | ||
WizDevToolsDialog(QSize sz, QWidget *parent = 0); | ||
WizWebEngineView* getWeb(); | ||
|
||
|
||
}; | ||
|
||
#endif // WIZDEVTOOLSDIALOG_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters