fixed compiling
This commit is contained in:
@@ -107,6 +107,11 @@ void Notebook::select(SplitContainer *page)
|
||||
this->performLayout();
|
||||
}
|
||||
|
||||
int Notebook::tabCount()
|
||||
{
|
||||
return this->pages.size();
|
||||
}
|
||||
|
||||
SplitContainer *Notebook::tabAt(QPoint point, int &index)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
@@ -39,6 +39,7 @@ public:
|
||||
|
||||
void performLayout(bool animate = true);
|
||||
|
||||
int tabCount();
|
||||
SplitContainer *tabAt(QPoint point, int &index);
|
||||
void rearrangePage(SplitContainer *page, int index);
|
||||
|
||||
|
||||
@@ -66,10 +66,6 @@ Window::Window(ChannelManager &_channelManager, ColorScheme &_colorScheme,
|
||||
}
|
||||
}
|
||||
|
||||
Window::~Window()
|
||||
{
|
||||
}
|
||||
|
||||
void Window::repaintVisibleChatWidgets(Channel *channel)
|
||||
{
|
||||
auto *page = this->notebook.getSelectedPage();
|
||||
@@ -128,6 +124,8 @@ void Window::closeEvent(QCloseEvent *)
|
||||
{
|
||||
// Save closing window position
|
||||
// this->windowGeometry = this->geometry();
|
||||
|
||||
this->closed();
|
||||
}
|
||||
|
||||
void Window::refreshTheme()
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
//#endif
|
||||
|
||||
#include <boost/property_tree/ptree.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
#include <pajlada/settings/serialize.hpp>
|
||||
#include <pajlada/settings/settingdata.hpp>
|
||||
|
||||
@@ -27,7 +28,6 @@ class Window : public BaseWidget
|
||||
public:
|
||||
explicit Window(ChannelManager &_channelManager, ColorScheme &_colorScheme,
|
||||
CompletionManager &_completionManager, bool isMainWindow);
|
||||
~Window();
|
||||
|
||||
void repaintVisibleChatWidgets(Channel *channel = nullptr);
|
||||
|
||||
@@ -39,6 +39,8 @@ public:
|
||||
|
||||
Notebook &getNotebook();
|
||||
|
||||
boost::signals2::signal<void()> closed;
|
||||
|
||||
protected:
|
||||
virtual void closeEvent(QCloseEvent *event) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user