Logo Search packages:      
Sourcecode: qtm version File versions  Download package

bool DBusAdaptor::open ( QString  path ) [slot]

open - Opens a saved entry from disk Returns true if successful and false if unsuccessful.

Definition at line 118 of file DBusAdaptor.cc.

{
  bool rv = false;

  if( !path.isEmpty() ) {
    EditingWindow *e = new EditingWindow;
    rv = e->load( path, true );
    if( rv ) {
      e->setSTI( _sti );
      e->show();
      e->activateWindow();
      QApplication::alert( e );
    }
    else
      e->deleteLater();
  }
  return rv;
}

Generated by  Doxygen 1.6.0   Back to index