Correct mistakes, rename left_arrow to left_side, make lowercase, change namespace to Olive

This commit is contained in:
alexmitchell
2019-02-08 13:42:46 +10:30
parent 3fe8660c5e
commit 8faa4db15c
6 changed files with 15 additions and 15 deletions
+8 -8
View File
@@ -5,18 +5,18 @@
#include <QDebug>
QCursor OLIVE_CURSORS::left_arrow;
QCursor OLIVE_CURSORS::right_arrow;
QCursor Olive::left_side;
QCursor Olive::right_side;
QCursor load_cursor(QString file, const int hotX, const int hotY, const bool right_aligend){
int hotoutX;
QCursor load_cursor(QString file, const int hotX, const int hotY, const bool right_aligned){
int hotX_out;
QPixmap temp = QPixmap(file);
right_aligend? hotoutX = temp.width() : hotoutX = hotX;
return QCursor(temp,hotoutX,hotY);
right_aligned? hotX_out = temp.width() : hotX_out = hotX;
return QCursor(temp,hotX_out,hotY);
}
void initCustomCursors(){
qInfo() << "Loading Custom Cursors";
OLIVE_CURSORS::left_arrow = load_cursor(":/cursors/Cursor_Left_Arrow.png", 0,-1, false);
OLIVE_CURSORS::right_arrow = load_cursor(":/cursors/Cursor_Right_Arrow.png", 0,-1, true);
Olive::left_side = load_cursor(":/cursors/left_side.png", 0,-1, false);
Olive::right_side = load_cursor(":/cursors/right_side.png", 0,-1, true);
}