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

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

Definition at line 1041 of file dcoptions.cpp.

Referenced by InitDocument().

{
      CDir di;
      QString dir;
      CString s;
      int i;

      dir = QFileDialog::getExistingDirectory ( "", this, "bdf", tr("Select share folder"), TRUE );

      if( dir != "" )
      {
            if ( ListView_SHAREDFOLDERS->findItem( dir, 0 ) == 0 )
            {
                  di.SetPath(dir.ascii());
                  s = di.Path();
                  i = 1;

                  while( ListView_SHAREDFOLDERS->findItem( di.DirName().Data(), 1 ) != 0 )
                  {
                        di.SetPath( s + CString().setNum(i) );
                        i++;
                  }

                  new QListViewItem( ListView_SHAREDFOLDERS, dir, di.DirName().Data() );
            }
      }
}


Generated by  Doxygen 1.6.0   Back to index