Correct mistakes, rename left_arrow to left_side, make lowercase, change namespace to Olive
This commit is contained in:
+8
-8
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user