minor improvements
This commit is contained in:
@@ -1684,7 +1684,7 @@ bool ChannelView::tryGetMessageAt(QPoint p,
|
||||
int ChannelView::getLayoutWidth() const
|
||||
{
|
||||
if (this->scrollBar_->isVisible())
|
||||
return int(this->width() - 8 * this->scale());
|
||||
return int(this->width() - scrollbarPadding * this->scale());
|
||||
|
||||
return this->width();
|
||||
}
|
||||
|
||||
@@ -201,6 +201,9 @@ private:
|
||||
|
||||
std::unordered_set<std::shared_ptr<MessageLayout>> messagesOnScreen_;
|
||||
|
||||
static constexpr int leftPadding = 8;
|
||||
static constexpr int scrollbarPadding = 8;
|
||||
|
||||
private slots:
|
||||
void wordFlagsChanged()
|
||||
{
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "singletons/Settings.hpp"
|
||||
#include "singletons/Theme.hpp"
|
||||
#include "singletons/WindowManager.hpp"
|
||||
#include "util/Shortcut.hpp"
|
||||
#include "util/StreamLink.hpp"
|
||||
#include "widgets/Notebook.hpp"
|
||||
#include "widgets/Window.hpp"
|
||||
@@ -23,7 +24,6 @@
|
||||
#include "widgets/helper/NotebookTab.hpp"
|
||||
#include "widgets/helper/ResizingTextEdit.hpp"
|
||||
#include "widgets/helper/SearchPopup.hpp"
|
||||
#include "util/Shortcut.hpp"
|
||||
#include "widgets/splits/ClosedSplits.hpp"
|
||||
#include "widgets/splits/SplitContainer.hpp"
|
||||
#include "widgets/splits/SplitHeader.hpp"
|
||||
@@ -297,7 +297,7 @@ void Split::showChangeChannelPopup(const char *dialogTitle, bool empty,
|
||||
return;
|
||||
}
|
||||
|
||||
SelectChannelDialog *dialog = new SelectChannelDialog(this);
|
||||
auto dialog = new SelectChannelDialog(this);
|
||||
if (!empty)
|
||||
{
|
||||
dialog->setSelectedChannel(this->getIndirectChannel());
|
||||
|
||||
Reference in New Issue
Block a user