summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-09-30 01:32:04 (UTC)
committer llornkcor <llornkcor>2002-09-30 01:32:04 (UTC)
commit251458a2dd6d75c59440dc006060db2544de5d0e (patch) (side-by-side diff)
treee367bffa02a6e20caafa7f9917f1222fcaae0ab6
parentf6e9cebd79044b1ca54648ecdadd13db8c4673dc (diff)
downloadopie-251458a2dd6d75c59440dc006060db2544de5d0e.zip
opie-251458a2dd6d75c59440dc006060db2544de5d0e.tar.gz
opie-251458a2dd6d75c59440dc006060db2544de5d0e.tar.bz2
fixed scroll, and cleanedup non used variables
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp38
1 files changed, 22 insertions, 16 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index 9beac94..4e14946 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -62,6 +62,6 @@ static netbuf *conn=NULL;
-static int log_progress(netbuf *ctl, int xfered, void *arg)
+static int log_progress(netbuf *, int xfered, void *)
{
- int fsz = *(int *)arg;
- int pct = (xfered * 100) / fsz;
+// int fsz = *(int *)arg;
+// int pct = (xfered * 100) / fsz;
// printf("%3d%%\r", pct);
@@ -227,3 +227,4 @@ OpieFtp::OpieFtp( )
- connect( UsernameComboBox,SIGNAL(textChanged(const QString &)),this,SLOT( UsernameComboBoxEdited(const QString & ) ));
+ connect( UsernameComboBox,SIGNAL(textChanged(const QString &)),this,
+ SLOT( UsernameComboBoxEdited(const QString & ) ));
@@ -237,3 +238,4 @@ OpieFtp::OpieFtp( )
- connect( PasswordEdit,SIGNAL(textChanged(const QString &)),this,SLOT( PasswordEditEdited(const QString & ) ));
+ connect( PasswordEdit,SIGNAL(textChanged(const QString &)),this,
+ SLOT( PasswordEditEdited(const QString & ) ));
@@ -249,3 +251,4 @@ OpieFtp::OpieFtp( )
connect(ServerComboBox,SIGNAL(activated(int)),this,SLOT(serverComboSelected(int ) ));
- connect(ServerComboBox,SIGNAL(textChanged(const QString &)),this,SLOT(serverComboEdited(const QString & ) ));
+ connect(ServerComboBox,SIGNAL(textChanged(const QString &)),this,
+ SLOT(serverComboEdited(const QString & ) ));
@@ -349,3 +352,3 @@ void OpieFtp::cleanUp()
-void OpieFtp::tabChanged(QWidget *w)
+void OpieFtp::tabChanged(QWidget *)
{
@@ -391,3 +394,3 @@ void OpieFtp::newConnection()
-void OpieFtp::serverComboEdited(const QString & edit)
+void OpieFtp::serverComboEdited(const QString & )
{
@@ -399,3 +402,3 @@ void OpieFtp::serverComboEdited(const QString & edit)
-void OpieFtp::UsernameComboBoxEdited(const QString & use) {
+void OpieFtp::UsernameComboBoxEdited(const QString &) {
// currentServerConfig = -1;
@@ -403,3 +406,3 @@ void OpieFtp::UsernameComboBoxEdited(const QString & use) {
-void OpieFtp::PasswordEditEdited(const QString & pass) {
+void OpieFtp::PasswordEditEdited(const QString & ) {
// currentServerConfig = -1;
@@ -444,3 +447,3 @@ void OpieFtp::connector()
cfg.setGroup("Server");
- int current=cfg.readNumEntry("currentServer", 1);
+// int current=cfg.readNumEntry("currentServer", 1);
@@ -655,3 +658,3 @@ void OpieFtp::populateLocalView()
QFileInfo sym( symLink);
- fileS.sprintf( "%10li", sym.size() );
+ fileS.sprintf( "%10i", sym.size() );
fileL.sprintf( "%s -> %s", fi->fileName().data(),sym.absFilePath().data() );
@@ -660,3 +663,3 @@ void OpieFtp::populateLocalView()
// qDebug("Not a dir: "+currentDir.canonicalPath()+fileL);
- fileS.sprintf( "%10li", fi->size() );
+ fileS.sprintf( "%10i", fi->size() );
fileL.sprintf( "%s",fi->fileName().data() );
@@ -816,2 +819,4 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem)
// QCopEnvelope ( "QPE/System", "notBusy()" );
+ Remote_View->ensureItemVisible(Remote_View->firstChild());
+
}
@@ -857,2 +862,3 @@ void OpieFtp::localListClicked(QListViewItem *selectedItem)
}
+ Local_View->ensureItemVisible(Local_View->firstChild());
}
@@ -888,3 +894,3 @@ void OpieFtp::showHidden()
-void OpieFtp::ListPressed( int mouse, QListViewItem *item, const QPoint &point, int i)
+void OpieFtp::ListPressed( int mouse, QListViewItem *item, const QPoint &, int)
{
@@ -896,3 +902,3 @@ void OpieFtp::ListPressed( int mouse, QListViewItem *item, const QPoint &point,
-void OpieFtp::RemoteListPressed( int mouse, QListViewItem *item, const QPoint &point, int i)
+void OpieFtp::RemoteListPressed( int mouse, QListViewItem *item, const QPoint &, int )
{
@@ -1307,3 +1313,3 @@ void OpieFtp::serverComboSelected(int index)
cfg.setGroup("Server");
- int numberOfEntries = cfg.readNumEntry("numberOfEntries",0);
+// int numberOfEntries = cfg.readNumEntry("numberOfEntries",0);