Addition of a file comparison window that can be used to find what sort of things changed between two files.

This commit is contained in:
Collin Kidder
2015-06-22 19:09:20 -04:00
parent 7ffb59e545
commit fbe89c7afb
10 changed files with 479 additions and 3 deletions
+12
View File
@@ -44,6 +44,18 @@ public:
QDateTime stamp = QDateTime::currentDateTime();
return (long)(((stamp.time().hour() * 3600) + (stamp.time().minute() * 60) + (stamp.time().second()) * 1000) + stamp.time().msec());
}
//prints hex numbers in uppercase with 0's filling out the number depending
//on the size needed. Promotes hex numbers to either 2, 4, or 8 digits
static QString formatHexNum(int input)
{
if (input < 256)
return QString::number(input, 16).toUpper().rightJustified(2,'0');
if (input < 65536)
return QString::number(input, 16).toUpper().rightJustified(4,'0');
return QString::number(input, 16).toUpper().rightJustified(8,'0');
}
};
#endif // UTILITY_H