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:
Joachim Kohlhammer
2026-03-07 13:46:46 +01:00
committed by GitHub
parent 1d61643a0b
commit 1d37396334
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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