New TODO comment style.

Qt Creator 2.5 is able to parse those.
This commit is contained in:
Felix Geyer
2012-05-11 12:39:06 +02:00
parent 8faac078fd
commit 587a647c11
16 changed files with 38 additions and 38 deletions

View File

@@ -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)

View File

@@ -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);
}

View File

@@ -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);
}