Ejemplo n.º 1
0
/**
 * This slot is used to set the secondary text, such as the name of the
 * airspace file that is being loaded. It is also reset to an empty string
 * if SetText1 is called.
 */
void WaitScreen::slot_SetText2(const QString& text)
{
  QString shortText = text;

  if( text.length() > 32 )
    {
      shortText="..." + text.right(32);

      int pos = shortText.lastIndexOf( QChar('/') );

      if( pos != -1 )
        {
          // cut directory paths
          shortText = shortText.right(shortText.length() - pos - 1 );
        }
    }

  Text2->setText(shortText);

  if( screenUsage() )
    {
      slot_Progress(1);
    }
  else
    {
      flush();
    }
}
Ejemplo n.º 2
0
/** This slot is used to set the main text, such as "Loading maps..." */
void WaitScreen::slot_SetText1(const QString& text)
{
  Text1->setText(text);
  Text2->setText("");

  // qDebug("slot_SetText1(): text=%s\n", text.latin1());

  if( screenUsage() )
    {
      slot_Progress(1);
    }
  else
    {
      flush();
    }
}
int PowerlineSecurity::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QDialog::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: signRefresh(); break;
        case 1: signApply((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QList<QPair<QString,QString> >(*)>(_a[2]))); break;
        case 2: slot_BtnClose(); break;
        case 3: slot_BtnRefresh(); break;
        case 4: slot_BtnApply(); break;
        case 5: slot_Progress((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 6: slot_chkState((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 7: slot_retPwdDlg((*reinterpret_cast< const QList<QPair<QString,QString> >(*)>(_a[1]))); break;
        case 8: slot_rdo_default(); break;
        case 9: slot_rdo_new(); break;
        default: ;
        }
        _id -= 10;
    }
    return _id;
}