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

void DCOptions::slotEditSharedFolder (  )  [private, slot]

Definition at line 1082 of file dcoptions.cpp.

Referenced by InitDocument().

{
      QString s;
      QListViewItem * item = ListView_SHAREDFOLDERS->currentItem();

      if ( item )
      {
            DCDialogEditSharePath dlg;
            
            dlg.LineEdit_PATH->setText( item->text(0) );
            dlg.LineEdit_ALIAS->setText( item->text(1) );
            
            if ( dlg.exec() == QDialog::Accepted )
            {
                  item->setText(0,dlg.LineEdit_PATH->text());
                  
                  s = dlg.LineEdit_ALIAS->text();
                  s = s.replace( QRegExp("\\"),"");
                  s = s.replace( QRegExp("/"),"");
                  item->setText(1,s);
            }
      }
}


Generated by  Doxygen 1.6.0   Back to index