added categories to the accountspage
This commit is contained in:
@@ -78,8 +78,8 @@ void AttachedWindow::attachToHwnd(void *_hwnd)
|
||||
QTimer *timer = new QTimer(this);
|
||||
timer->setInterval(1);
|
||||
|
||||
HWND hwnd = (HWND)this->winId();
|
||||
HWND attached = (HWND)_hwnd;
|
||||
HWND hwnd = HWND(this->winId());
|
||||
HWND attached = HWND(_hwnd);
|
||||
QObject::connect(timer, &QTimer::timeout, [this, hwnd, attached, timer] {
|
||||
::SetLastError(0);
|
||||
RECT xD;
|
||||
@@ -93,7 +93,8 @@ void AttachedWindow::attachToHwnd(void *_hwnd)
|
||||
|
||||
HWND next = ::GetNextWindow(attached, GW_HWNDPREV);
|
||||
|
||||
::SetWindowPos(hwnd, next ? next : HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
|
||||
::SetWindowPos(hwnd, next ? next : HWND_TOPMOST, 0, 0, 0, 0,
|
||||
SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
|
||||
::MoveWindow(hwnd, xD.right - 360, xD.top + this->yOffset - 8, 360 - 8,
|
||||
xD.bottom - xD.top - this->yOffset, false);
|
||||
// ::MoveWindow(hwnd, xD.right - 360, xD.top + 82, 360 - 8, xD.bottom - xD.top - 82 -
|
||||
|
||||
@@ -579,7 +579,7 @@ bool ChannelView::isPaused()
|
||||
|
||||
void ChannelView::paintEvent(QPaintEvent * /*event*/)
|
||||
{
|
||||
BenchmarkGuard benchmark("paint event");
|
||||
// BenchmarkGuard benchmark("paint event");
|
||||
|
||||
QPainter painter(this);
|
||||
|
||||
|
||||
@@ -30,14 +30,17 @@ AccountsPage::AccountsPage()
|
||||
helper::EditableModelView *view =
|
||||
*layout.emplace<helper::EditableModelView>(app->accounts->createModel(nullptr));
|
||||
|
||||
view->setTitles({"Name"});
|
||||
view->getTableView()->horizontalHeader()->setVisible(false);
|
||||
view->getTableView()->horizontalHeader()->setStretchLastSection(true);
|
||||
|
||||
view->addButtonPressed.connect([] {
|
||||
static auto loginWidget = new LoginWidget();
|
||||
|
||||
loginWidget->show();
|
||||
});
|
||||
|
||||
view->getTableView()->setStyleSheet("background: #333");
|
||||
|
||||
// auto buttons = layout.emplace<QDialogButtonBox>();
|
||||
// {
|
||||
// this->addButton = buttons->addButton("Add", QDialogButtonBox::YesRole);
|
||||
|
||||
@@ -34,7 +34,7 @@ IgnoreUsersPage::IgnoreUsersPage()
|
||||
|
||||
// auto group = layout.emplace<QGroupBox>("Ignored users").setLayoutType<QVBoxLayout>();
|
||||
auto tabs = layout.emplace<QTabWidget>();
|
||||
tabs->setStyleSheet("color: #000");
|
||||
// tabs->setStyleSheet("color: #000");
|
||||
|
||||
// users
|
||||
auto users = tabs.appendTab(new QVBoxLayout, "Users");
|
||||
|
||||
Reference in New Issue
Block a user