ORE Studio 0.0.4
Loading...
Searching...
No Matches
Signals | Public Member Functions | List of all members
CronExpressionWidget Class Reference

Compact widget for entering and editing cron expressions. More...

#include <CronExpressionWidget.hpp>

Inherits QWidget.

Collaboration diagram for CronExpressionWidget:
Collaboration graph

Signals

void cronChanged (const QString &expression)
 

Public Member Functions

 CronExpressionWidget (QWidget *parent=nullptr)
 
QString cronExpression () const
 
void setCronExpression (const QString &expr)
 
bool isValid () const
 
void setReadOnly (bool readOnly)
 

Detailed Description

Compact widget for entering and editing cron expressions.

Shows an editable cron string (red border when invalid) and a "..." button that opens the CronEditorDialog for a tab-based visual builder. The public API is identical to the old widget so all dialogs that embed it as a custom widget require no changes.

Member Function Documentation

◆ cronExpression()

QString cronExpression ( ) const

Returns the current cron expression string (5-field).

◆ setCronExpression()

void setCronExpression ( const QString &  expr)

Sets the cron expression, updating the line edit.

◆ isValid()

bool isValid ( ) const

Returns true if the current expression parses successfully.

◆ setReadOnly()

void setReadOnly ( bool  readOnly)

Enables or disables editing and the builder button.