mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
inline and mark const some of QSvgIconEnginePrivate methods
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
fb253d03c7
commit
e85ed60606
1 changed files with 3 additions and 3 deletions
|
@ -65,15 +65,15 @@ public:
|
|||
~QSvgIconEnginePrivate()
|
||||
{ delete addedPixmaps; delete svgBuffers; }
|
||||
|
||||
static int hashKey(QIcon::Mode mode, QIcon::State state)
|
||||
inline static int hashKey(QIcon::Mode mode, QIcon::State state)
|
||||
{ return (((mode)<<4)|state); }
|
||||
|
||||
QString pmcKey(const QSize &size, QIcon::Mode mode, QIcon::State state)
|
||||
inline QString pmcKey(const QSize &size, QIcon::Mode mode, QIcon::State state) const
|
||||
{ return QLatin1String("$qt_svgicon_")
|
||||
+ QString::number(serialNum, 16).append(QLatin1Char('_'))
|
||||
+ QString::number((((((size.width()<<11)|size.height())<<11)|mode)<<4)|state, 16); }
|
||||
|
||||
void stepSerialNum()
|
||||
inline void stepSerialNum()
|
||||
{ serialNum = lastSerialNum.fetchAndAddRelaxed(1); }
|
||||
|
||||
void loadDataForModeAndState(QSvgRenderer *renderer, QIcon::Mode mode, QIcon::State state);
|
||||
|
|
Loading…
Add table
Reference in a new issue