fixed compiling

This commit is contained in:
2017-12-14 00:25:06 +01:00
parent 7f18cefee4
commit 86ae71f674
9 changed files with 65 additions and 41 deletions
+5
View File
@@ -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;
+1
View File
@@ -39,6 +39,7 @@ public:
void performLayout(bool animate = true);
int tabCount();
SplitContainer *tabAt(QPoint point, int &index);
void rearrangePage(SplitContainer *page, int index);
+2 -4
View File
@@ -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()
+3 -1
View File
@@ -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;