mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Cleanup: Drop many superflous includes and unused loadImg() function
This commit is contained in:
parent
f8915fbc98
commit
487f5e2046
@ -15,9 +15,6 @@
|
||||
#include "pki_base.h"
|
||||
#include "headerlist.h"
|
||||
|
||||
#include <QListView>
|
||||
#include <QPixmap>
|
||||
#include <QContextMenuEvent>
|
||||
#include <QStringList>
|
||||
#include <QAbstractItemModel>
|
||||
#include <QHash>
|
||||
@ -75,7 +72,6 @@ class db_base: public QAbstractItemModel
|
||||
virtual void remFromCont(const QModelIndex &idx);
|
||||
void changeView();
|
||||
|
||||
QPixmap *loadImg(const char *name);
|
||||
void dump(const QString &dirname) const;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent)const;
|
||||
QModelIndex index(pki_base *pki)const;
|
||||
|
||||
13
lib/func.cpp
13
lib/func.cpp
@ -29,15 +29,7 @@
|
||||
#include <QFileInfo>
|
||||
#include <QStringList>
|
||||
#include <QCoreApplication>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QComboBox>
|
||||
#include <QMessageBox>
|
||||
#include <QPushButton>
|
||||
#include <QProgressBar>
|
||||
#include <QTextEdit>
|
||||
#include <QDebug>
|
||||
#include <stdarg.h>
|
||||
|
||||
#if defined(Q_OS_WIN32)
|
||||
#include <shlobj.h>
|
||||
@ -99,11 +91,6 @@ Passwd readPass()
|
||||
return pw;
|
||||
}
|
||||
|
||||
QPixmap *loadImg(const char *name )
|
||||
{
|
||||
return new QPixmap(QString(":") + name);
|
||||
}
|
||||
|
||||
const QStringList getLibExtensions()
|
||||
{
|
||||
return QStringList {
|
||||
|
||||
@ -42,7 +42,6 @@ typedef struct evp_md_st EVP_MD;
|
||||
|
||||
int console_write(FILE *fp, const QByteArray &ba);
|
||||
Passwd readPass();
|
||||
QPixmap *loadImg(const char *name);
|
||||
int portable_app();
|
||||
const QString getHomeDir();
|
||||
const QString getLibDir();
|
||||
|
||||
@ -21,6 +21,7 @@
|
||||
#include <QList>
|
||||
#include <QMenu>
|
||||
#include <QToolTip>
|
||||
#include <QHelpEvent>
|
||||
|
||||
class db_x509;
|
||||
class pki_multi;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user