New TODO comment style.
Qt Creator 2.5 is able to parse those.
This commit is contained in:
@@ -53,7 +53,7 @@ Config::Config()
|
||||
|
||||
userPath += "/keepassx/";
|
||||
#elif defined(Q_WS_MAC)
|
||||
// TODO where to store the config on mac?
|
||||
// TODO: where to store the config on mac?
|
||||
userPath = homePath;
|
||||
userPath += "/.keepassx/";
|
||||
#elif defined(Q_WS_WIN)
|
||||
|
||||
@@ -92,7 +92,7 @@ QImage Entry::icon() const
|
||||
return databaseIcons()->icon(m_data.iconNumber);
|
||||
}
|
||||
else {
|
||||
// TODO check if database() is 0
|
||||
// TODO: check if database() is 0
|
||||
return database()->metadata()->customIcon(m_data.customIcon);
|
||||
}
|
||||
}
|
||||
@@ -105,7 +105,7 @@ QPixmap Entry::iconPixmap() const
|
||||
else {
|
||||
QPixmap pixmap;
|
||||
if (!QPixmapCache::find(m_pixmapCacheKey, &pixmap)) {
|
||||
// TODO check if database() is 0
|
||||
// TODO: check if database() is 0
|
||||
pixmap = QPixmap::fromImage(database()->metadata()->customIcon(m_data.customIcon));
|
||||
*const_cast<QPixmapCache::Key*>(&m_pixmapCacheKey) = QPixmapCache::insert(pixmap);
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ QImage Group::icon() const
|
||||
return databaseIcons()->icon(m_iconNumber);
|
||||
}
|
||||
else {
|
||||
// TODO check if m_db is 0
|
||||
// TODO: check if m_db is 0
|
||||
return m_db->metadata()->customIcon(m_customIcon);
|
||||
}
|
||||
}
|
||||
@@ -113,7 +113,7 @@ QPixmap Group::iconPixmap() const
|
||||
else {
|
||||
QPixmap pixmap;
|
||||
if (!QPixmapCache::find(m_pixmapCacheKey, &pixmap)) {
|
||||
// TODO check if m_db is 0
|
||||
// TODO: check if m_db is 0
|
||||
pixmap = QPixmap::fromImage(m_db->metadata()->customIcon(m_customIcon));
|
||||
*const_cast<QPixmapCache::Key*>(&m_pixmapCacheKey) = QPixmapCache::insert(pixmap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user