tools/designer/src/lib/shared/actioneditor.cpp
changeset 18 2f34d5167611
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the Qt Designer of the Qt Toolkit.
     7 ** This file is part of the Qt Designer of the Qt Toolkit.
     8 **
     8 **
   426     const int row = m_actionView->model()->findAction(action);
   426     const int row = m_actionView->model()->findAction(action);
   427     if (row != -1)
   427     if (row != -1)
   428         m_actionView->model()->remove(row);
   428         m_actionView->model()->remove(row);
   429 }
   429 }
   430 
   430 
   431 // Set an intial property and mark it as changed in the sheet
   431 // Set an initial property and mark it as changed in the sheet
   432 static void setInitialProperty(QDesignerPropertySheetExtension *sheet, const QString &name, const QVariant &value)
   432 static void setInitialProperty(QDesignerPropertySheetExtension *sheet, const QString &name, const QVariant &value)
   433 {
   433 {
   434     const int index = sheet->indexOf(name);
   434     const int index = sheet->indexOf(name);
   435     Q_ASSERT(index != -1);
   435     Q_ASSERT(index != -1);
   436     sheet->setProperty(index, value);
   436     sheet->setProperty(index, value);