|
|
@ -472,7 +472,7 @@ namespace {
|
|
|
|
KMSearchRule::Function TextRuleWidgetHandler::currentFunction( const TQWidgetStack *functionStack ) const
|
|
|
|
KMSearchRule::Function TextRuleWidgetHandler::currentFunction( const TQWidgetStack *functionStack ) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const TQComboBox *funcCombo =
|
|
|
|
const TQComboBox *funcCombo =
|
|
|
|
dynamic_cast<TQComboBox*>( TQObject_child_const( TQT_TQOBJECT_CONST(functionStack),
|
|
|
|
dynamic_cast<TQComboBox*>( TQObject_child_const( functionStack,
|
|
|
|
"textRuleFuncCombo" ) );
|
|
|
|
"textRuleFuncCombo" ) );
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// dynamic_cast<TQComboBox*>( functionStack->child( "textRuleFuncCombo",
|
|
|
|
// dynamic_cast<TQComboBox*>( functionStack->child( "textRuleFuncCombo",
|
|
|
@ -503,7 +503,7 @@ namespace {
|
|
|
|
if ( func == KMSearchRule::FuncIsInCategory ||
|
|
|
|
if ( func == KMSearchRule::FuncIsInCategory ||
|
|
|
|
func == KMSearchRule::FuncIsNotInCategory ) {
|
|
|
|
func == KMSearchRule::FuncIsNotInCategory ) {
|
|
|
|
const TQComboBox *combo=
|
|
|
|
const TQComboBox *combo=
|
|
|
|
dynamic_cast<TQComboBox*>( TQObject_child_const( TQT_TQOBJECT_CONST(valueStack),
|
|
|
|
dynamic_cast<TQComboBox*>( TQObject_child_const( valueStack,
|
|
|
|
"categoryCombo" ) );
|
|
|
|
"categoryCombo" ) );
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// dynamic_cast<TQComboBox*>( valueStack->child( "categoryCombo",
|
|
|
|
// dynamic_cast<TQComboBox*>( valueStack->child( "categoryCombo",
|
|
|
@ -520,7 +520,7 @@ namespace {
|
|
|
|
|
|
|
|
|
|
|
|
//in other cases of func it is a lineedit
|
|
|
|
//in other cases of func it is a lineedit
|
|
|
|
const RegExpLineEdit *lineEdit =
|
|
|
|
const RegExpLineEdit *lineEdit =
|
|
|
|
dynamic_cast<RegExpLineEdit*>( TQObject_child_const( TQT_TQOBJECT_CONST(valueStack),
|
|
|
|
dynamic_cast<RegExpLineEdit*>( TQObject_child_const( valueStack,
|
|
|
|
"regExpLineEdit" ) );
|
|
|
|
"regExpLineEdit" ) );
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// dynamic_cast<RegExpLineEdit*>( valueStack->child( "regExpLineEdit",
|
|
|
|
// dynamic_cast<RegExpLineEdit*>( valueStack->child( "regExpLineEdit",
|
|
|
@ -794,7 +794,7 @@ namespace {
|
|
|
|
KMSearchRule::Function MessageRuleWidgetHandler::currentFunction( const TQWidgetStack *functionStack ) const
|
|
|
|
KMSearchRule::Function MessageRuleWidgetHandler::currentFunction( const TQWidgetStack *functionStack ) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const TQComboBox *funcCombo =
|
|
|
|
const TQComboBox *funcCombo =
|
|
|
|
dynamic_cast<TQComboBox*>( TQObject_child_const( TQT_TQOBJECT_CONST(functionStack),
|
|
|
|
dynamic_cast<TQComboBox*>( TQObject_child_const( functionStack,
|
|
|
|
"messageRuleFuncCombo" ) );
|
|
|
|
"messageRuleFuncCombo" ) );
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// dynamic_cast<TQComboBox*>( functionStack->child( "messageRuleFuncCombo",
|
|
|
|
// dynamic_cast<TQComboBox*>( functionStack->child( "messageRuleFuncCombo",
|
|
|
@ -825,7 +825,7 @@ namespace {
|
|
|
|
KMSearchRule::Function ) const
|
|
|
|
KMSearchRule::Function ) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const RegExpLineEdit *lineEdit =
|
|
|
|
const RegExpLineEdit *lineEdit =
|
|
|
|
dynamic_cast<RegExpLineEdit*>( TQObject_child_const( TQT_TQOBJECT_CONST(valueStack),
|
|
|
|
dynamic_cast<RegExpLineEdit*>( TQObject_child_const( valueStack,
|
|
|
|
"regExpLineEdit" ) );
|
|
|
|
"regExpLineEdit" ) );
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// dynamic_cast<RegExpLineEdit*>( valueStack->child( "regExpLineEdit",
|
|
|
|
// dynamic_cast<RegExpLineEdit*>( valueStack->child( "regExpLineEdit",
|
|
|
@ -1068,7 +1068,7 @@ namespace {
|
|
|
|
KMSearchRule::Function StatusRuleWidgetHandler::currentFunction( const TQWidgetStack *functionStack ) const
|
|
|
|
KMSearchRule::Function StatusRuleWidgetHandler::currentFunction( const TQWidgetStack *functionStack ) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const TQComboBox *funcCombo =
|
|
|
|
const TQComboBox *funcCombo =
|
|
|
|
dynamic_cast<TQComboBox*>( TQObject_child_const( TQT_TQOBJECT_CONST(functionStack),
|
|
|
|
dynamic_cast<TQComboBox*>( TQObject_child_const( functionStack,
|
|
|
|
"statusRuleFuncCombo" ) );
|
|
|
|
"statusRuleFuncCombo" ) );
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// dynamic_cast<TQComboBox*>( functionStack->child( "statusRuleFuncCombo",
|
|
|
|
// dynamic_cast<TQComboBox*>( functionStack->child( "statusRuleFuncCombo",
|
|
|
@ -1098,7 +1098,7 @@ namespace {
|
|
|
|
int StatusRuleWidgetHandler::currenStatusValue( const TQWidgetStack *valueStack ) const
|
|
|
|
int StatusRuleWidgetHandler::currenStatusValue( const TQWidgetStack *valueStack ) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const TQComboBox *statusCombo =
|
|
|
|
const TQComboBox *statusCombo =
|
|
|
|
dynamic_cast<TQComboBox*>( TQObject_child_const( TQT_TQOBJECT_CONST(valueStack),
|
|
|
|
dynamic_cast<TQComboBox*>( TQObject_child_const( valueStack,
|
|
|
|
"statusRuleValueCombo" ) );
|
|
|
|
"statusRuleValueCombo" ) );
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// dynamic_cast<TQComboBox*>( valueStack->child( "statusRuleValueCombo",
|
|
|
|
// dynamic_cast<TQComboBox*>( valueStack->child( "statusRuleValueCombo",
|
|
|
@ -1323,7 +1323,7 @@ namespace {
|
|
|
|
KMSearchRule::Function NumericRuleWidgetHandler::currentFunction( const TQWidgetStack *functionStack ) const
|
|
|
|
KMSearchRule::Function NumericRuleWidgetHandler::currentFunction( const TQWidgetStack *functionStack ) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const TQComboBox *funcCombo =
|
|
|
|
const TQComboBox *funcCombo =
|
|
|
|
dynamic_cast<TQComboBox*>( TQObject_child_const( TQT_TQOBJECT_CONST(functionStack),
|
|
|
|
dynamic_cast<TQComboBox*>( TQObject_child_const( functionStack,
|
|
|
|
"numericRuleFuncCombo" ) );
|
|
|
|
"numericRuleFuncCombo" ) );
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// dynamic_cast<TQComboBox*>( functionStack->child( "numericRuleFuncCombo",
|
|
|
|
// dynamic_cast<TQComboBox*>( functionStack->child( "numericRuleFuncCombo",
|
|
|
@ -1353,7 +1353,7 @@ namespace {
|
|
|
|
TQString NumericRuleWidgetHandler::currentValue( const TQWidgetStack *valueStack ) const
|
|
|
|
TQString NumericRuleWidgetHandler::currentValue( const TQWidgetStack *valueStack ) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const KIntNumInput *numInput =
|
|
|
|
const KIntNumInput *numInput =
|
|
|
|
dynamic_cast<KIntNumInput*>( TQObject_child_const( TQT_TQOBJECT_CONST(valueStack),
|
|
|
|
dynamic_cast<KIntNumInput*>( TQObject_child_const( valueStack,
|
|
|
|
"KIntNumInput" ) );
|
|
|
|
"KIntNumInput" ) );
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// FIXME (TQt >= 4.0): Use the following when TQObject::child() is const.
|
|
|
|
// dynamic_cast<KIntNumInput*>( valueStack->child( "KIntNumInput",
|
|
|
|
// dynamic_cast<KIntNumInput*>( valueStack->child( "KIntNumInput",
|
|
|
|