PIScreen windows optimization, expanded pisd copy dialog
git-svn-id: svn://db.shs.com.ru/pip@90 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -28,6 +28,16 @@ public:
|
||||
};
|
||||
|
||||
|
||||
PIString readableTime(const PITime & t) {
|
||||
PIString ret;
|
||||
bool pt = false;
|
||||
if (t.hours > 0) {ret += PIString::fromNumber(t.hours).expandLeftTo(2, '0') + " h "; pt = true;}
|
||||
if ((t.minutes > 0) || pt) {ret += PIString::fromNumber(t.minutes).expandLeftTo(2, '0') + " m "; pt = true;}
|
||||
if ((t.seconds > 0) || pt) ret += PIString::fromNumber(t.seconds).expandLeftTo(2, '0') + " s";
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
PIString askNewDir() {
|
||||
PIScreenTile dlg;
|
||||
dlg.setMargins(1, 1, 1, 1);
|
||||
|
||||
Reference in New Issue
Block a user