Skip to content

Commit

Permalink
fixed tab sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
RamblingMadMan committed Oct 7, 2021
1 parent c8ddb2f commit 3659598
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qide/QideWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,13 @@ QideTabsWidget::QideTabsWidget(QWidget *parent)
auto btn = btns[i];
auto img = &imgs[i];
img->invertPixels();

btn->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
btn->setText(strs[i]);
btn->setIcon(QIcon(QPixmap::fromImage(*img)));
btn->setContentsMargins(0, 0, 0, 0);
btn->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);

lay->addWidget(btn);
}

Expand Down
Binary file modified res/qide1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3659598

Please sign in to comment.