mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-13 12:42:20 +00:00
Using QObject as baseclass for ICalendar (#4837)
As ICalendar is not a real UI class and is never added to any layout, it overlays the menubar, preventing opening the first two entries. Using QObject instead of QWidget as superclass fixes this issue
This commit is contained in:
committed by
GitHub
parent
1d61643a0b
commit
1d37396334
@@ -164,7 +164,7 @@ static QDateTime propertyToDate(icalproperty *p)
|
||||
}
|
||||
}
|
||||
|
||||
ICalendar::ICalendar(Context *context) : QWidget(context->mainWindow), context(context)
|
||||
ICalendar::ICalendar(Context *context) : QObject(context->mainWindow), context(context)
|
||||
{
|
||||
// get from local and remote calendar
|
||||
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
#define _GC_ICalendar_h 1
|
||||
#include "GoldenCheetah.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QObject>
|
||||
#include "Context.h"
|
||||
#include "RideMetric.h"
|
||||
#include <libical/ical.h>
|
||||
|
||||
class ICalendar : public QWidget
|
||||
class ICalendar : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
G_OBJECT
|
||||
|
||||
Reference in New Issue
Block a user