Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

Commit

Permalink
Add "0" symbol before string of screenshot's number (if num < 10)
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOMer committed May 7, 2012
1 parent cb86636 commit b73a9a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ find_package( Qt4 REQUIRED COMPONENTS QtCore QtGui QtNetwork)
include( "${QT_USE_FILE}" )

# add version define
set(SCREENGRAB_VERSION "0.9.91")
set(SCREENGRAB_VERSION "0.9.92")
set(SCREENGRAB_VERSION_DEV "1.0")
set(DEV_BUILD True)

Expand Down
9 changes: 8 additions & 1 deletion src/core/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,14 @@ QString Config::getConfigDir()

QString Config::getScrNumStr()
{
return QString::number(scrNum);
QString str = QString::number(scrNum);

if (scrNum < 10)
{
str.prepend("0");
}

return str;
}

int Config::getScrNum() const
Expand Down

0 comments on commit b73a9a7

Please sign in to comment.