Q_OBJECT
public:
- // The default contructor.
+ // The primary contructor.
explicit MainView(QWidget *parent);
+signals:
+ // Define the signals.
+ void linkHovered(const QString &linkUrl);
+
+private Q_SLOTS:
+ // Define the private slots.
+ void goHome();
+ void loadUrl(const QString &urlFromUser);
+ void pageLinkHovered(const QString &linkUrl);
+ void updateInterface();
+
private:
- // Declare the private variables.
- Ui::MainView mainViewUi;
+ // Define the private variables.
+ QPushButton *backButtonPointer;
+ QPushButton *forwardButtonPointer;
+ KLineEdit *urlLineEditPointer;
+ QWebEngineHistory *webEngineHistoryPointer;
+ QWebEngineView *webEngineViewPointer;
};
#endif