mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-25 12:06:26 +03:00
fix some compiler warnings
This commit is contained in:
parent
f07070f7f9
commit
6cf4f14dec
@ -945,6 +945,10 @@ void MainWindow::changeEvent(QEvent* event)
|
||||
windowStateChanged();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// all that do not return are allowing the event to propagate
|
||||
|
@ -43,14 +43,14 @@ class ScreenSetupView : public QTableView
|
||||
ScreenSetupModel* model() const;
|
||||
|
||||
protected:
|
||||
void mouseDoubleClickEvent(QMouseEvent*);
|
||||
void mouseDoubleClickEvent(QMouseEvent*) override;
|
||||
void setTableSize();
|
||||
void resizeEvent(QResizeEvent*);
|
||||
void dragEnterEvent(QDragEnterEvent* event);
|
||||
void dragMoveEvent(QDragMoveEvent* event);
|
||||
void startDrag(Qt::DropActions supportedActions);
|
||||
QStyleOptionViewItem viewOptions() const;
|
||||
void scrollTo(const QModelIndex&, ScrollHint) {}
|
||||
void resizeEvent(QResizeEvent*) override;
|
||||
void dragEnterEvent(QDragEnterEvent* event) override;
|
||||
void dragMoveEvent(QDragMoveEvent* event) override;
|
||||
void startDrag(Qt::DropActions supportedActions) override;
|
||||
QStyleOptionViewItem viewOptions() const override;
|
||||
void scrollTo(const QModelIndex&, ScrollHint) override {}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -35,7 +35,7 @@ runCocoaApp()
|
||||
|
||||
NSWindow* window = [[NSWindow alloc]
|
||||
initWithContentRect: NSMakeRect(0, 0, 3, 3)
|
||||
styleMask: NSBorderlessWindowMask
|
||||
styleMask: NSWindowStyleMaskBorderless
|
||||
backing: NSBackingStoreBuffered
|
||||
defer: NO];
|
||||
[window setTitle: @""];
|
||||
|
@ -71,14 +71,14 @@ bool
|
||||
fakeNativeMediaKey(KeyID id)
|
||||
{
|
||||
|
||||
NSEvent* downRef = [NSEvent otherEventWithType:NSSystemDefined
|
||||
NSEvent* downRef = [NSEvent otherEventWithType:NSEventTypeSystemDefined
|
||||
location: NSMakePoint(0, 0) modifierFlags:0xa00
|
||||
timestamp:0 windowNumber:0 context:0 subtype:8
|
||||
data1:(convertKeyIDToNXKeyType(id) << 16) | ((0xa) << 8)
|
||||
data2:-1];
|
||||
CGEventRef downEvent = [downRef CGEvent];
|
||||
|
||||
NSEvent* upRef = [NSEvent otherEventWithType:NSSystemDefined
|
||||
NSEvent* upRef = [NSEvent otherEventWithType:NSEventTypeSystemDefined
|
||||
location: NSMakePoint(0, 0) modifierFlags:0xa00
|
||||
timestamp:0 windowNumber:0 context:0 subtype:8
|
||||
data1:(convertKeyIDToNXKeyType(id) << 16) | ((0xb) << 8)
|
||||
|
@ -133,14 +133,14 @@ bool
|
||||
fakeNativeMediaKey(KeyID id)
|
||||
{
|
||||
|
||||
NSEvent* downRef = [NSEvent otherEventWithType:NSSystemDefined
|
||||
NSEvent* downRef = [NSEvent otherEventWithType:NSEventTypeSystemDefined
|
||||
location: NSMakePoint(0, 0) modifierFlags:0xa00
|
||||
timestamp:0 windowNumber:0 context:0 subtype:8
|
||||
data1:(convertKeyIDToNXKeyType(id) << 16) | ((0xa) << 8)
|
||||
data2:-1];
|
||||
CGEventRef downEvent = [downRef CGEvent];
|
||||
|
||||
NSEvent* upRef = [NSEvent otherEventWithType:NSSystemDefined
|
||||
NSEvent* upRef = [NSEvent otherEventWithType:NSEventTypeSystemDefined
|
||||
location: NSMakePoint(0, 0) modifierFlags:0xa00
|
||||
timestamp:0 windowNumber:0 context:0 subtype:8
|
||||
data1:(convertKeyIDToNXKeyType(id) << 16) | ((0xb) << 8)
|
||||
|
@ -21,7 +21,7 @@
|
||||
CFStringRef
|
||||
getDraggedFileURL()
|
||||
{
|
||||
NSString* pbName = NSDragPboard;
|
||||
NSString* pbName = NSPasteboardNameDrag;
|
||||
NSPasteboard* pboard = [NSPasteboard pasteboardWithName:pbName];
|
||||
|
||||
NSMutableString* string;
|
||||
|
Loading…
Reference in New Issue
Block a user