mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
Coding style, use nullptr and other minor things
This commit is contained in:
parent
f27e75e8fa
commit
525fdd6c2b
54 changed files with 361 additions and 403 deletions
|
@ -26,9 +26,10 @@
|
|||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#include <QDateTime>
|
||||
#include "cookiesmodel.h"
|
||||
|
||||
#include <QDateTime>
|
||||
|
||||
CookiesModel::CookiesModel(const QList<QNetworkCookie> &cookies, QObject *parent)
|
||||
: QAbstractItemModel(parent)
|
||||
, m_cookies(cookies)
|
||||
|
@ -43,8 +44,7 @@ QList<QNetworkCookie> CookiesModel::cookies() const
|
|||
QVariant CookiesModel::headerData(int section, Qt::Orientation orientation, int role) const
|
||||
{
|
||||
if ((role == Qt::DisplayRole) && (orientation == Qt::Horizontal)) {
|
||||
switch (section)
|
||||
{
|
||||
switch (section) {
|
||||
case COL_DOMAIN:
|
||||
return tr("Domain");
|
||||
case COL_PATH:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue