Skip to content

Commit

Permalink
add MinSize fix pager buttons padding
Browse files Browse the repository at this point in the history
	modified:   README.md
	modified:   epager/pager.cpp
  • Loading branch information
zakariakov committed Feb 15, 2023
1 parent a726a10 commit 4fbc736
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ Foreground=$FgColor
- Command <string> Command to desplay
- Interval <int> second default 1
- MaxSize <int> default 100
- MinSize <int> default 0
- Label <string> default $Command ex:"$Command "
- ClickLeft <string> Command to exec
- ClickRight <string> Command to exec
Expand Down
5 changes: 3 additions & 2 deletions epager/pager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,9 @@ void Pager::setupBtns()
int w=mtr.width(btn->text());

#endif
btn->setMaximumWidth((w*3));
btn->setMinimumWidth((w*3));
btn->setMaximumWidth((w+15));
btn->setMinimumWidth((w+15));

//4 m_pSignalMapper->setMapping(btn, i);
//5 connect(btn, SIGNAL(activated()), m_pSignalMapper, SLOT(map())) ;
// btn->setMaximumWidth(btn->height());
Expand Down

0 comments on commit 4fbc736

Please sign in to comment.