* fix a lot of compiler warnings
[kdenetwork.git] / kget / transfer-plugins / bittorrent / btspeedlimits.cpp
blobcba3e0ed9c01a4adcb002797a4fc8482e712d0d7
1 /* This file is part of the KDE project
3 Copyright (C) 2007 Lukas Appelhans <l.appelhans@gmx.de>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9 */
10 #include "btspeedlimits.h"
12 #include <KDebug>
14 BTSpeedLimits::BTSpeedLimits(BTTransferHandler * handler, QWidget * parent)
15 : KDialog(parent),
16 m_handler(handler)
18 connect(this, SIGNAL(accepted()), SLOT(setSpeedLimits()));
21 void BTSpeedLimits::setSpeedLimits()
23 m_handler->setTrafficLimits(dlBox->value(), ulBox->value());