Mercurial > hg > svgui
diff widgets/SubdividingMenu.cpp @ 807:e4773943c9c1 warnfix_no_size_t
More unsigned/long and warning fixes
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 15:55:27 +0100 |
parents | 1a0dfcbffaf1 |
children | 4a578a360011 |
line wrap: on
line diff
--- a/widgets/SubdividingMenu.cpp Tue Jun 17 15:36:56 2014 +0100 +++ b/widgets/SubdividingMenu.cpp Tue Jun 17 15:55:27 2014 +0100 @@ -22,7 +22,7 @@ using std::set; using std::map; -SubdividingMenu::SubdividingMenu(size_t lowerLimit, size_t upperLimit, +SubdividingMenu::SubdividingMenu(int lowerLimit, int upperLimit, QWidget *parent) : QMenu(parent), m_lowerLimit(lowerLimit ? lowerLimit : 14), @@ -31,8 +31,8 @@ { } -SubdividingMenu::SubdividingMenu(const QString &title, size_t lowerLimit, - size_t upperLimit, QWidget *parent) : +SubdividingMenu::SubdividingMenu(const QString &title, int lowerLimit, + int upperLimit, QWidget *parent) : QMenu(title, parent), m_lowerLimit(lowerLimit ? lowerLimit : 14), m_upperLimit(upperLimit ? upperLimit : (m_lowerLimit * 5) / 2), @@ -53,11 +53,11 @@ { m_entriesSet = true; - size_t total = entries.size(); + int total = entries.size(); if (total < m_upperLimit) return; - size_t count = 0; + int count = 0; QMenu *chunkMenu = new QMenu(); chunkMenu->setTearOffEnabled(isTearOffEnabled());