CodePaster: Do better checking on hosts.

Do an initial connection check on the host
(once per host). Add utility function to
NetworkProtocol, displaying connection check
message box.
Move the 'Paste' handling into the PasteView
dialog, such that the checking happens there
and the dialog stays open if something fails.

Task-number: QTCREATORBUG-2117
This commit is contained in:
Friedemann Kleint
2010-08-20 17:08:09 +02:00
parent a18c8f9e96
commit 94babbd9ca
11 changed files with 122 additions and 38 deletions

View File

@@ -42,6 +42,7 @@ class PasteView : public QDialog
Q_OBJECT
public:
explicit PasteView(const QList<Protocol *> protocols,
const QString &mimeType,
QWidget *parent);
~PasteView();
@@ -56,6 +57,8 @@ public:
QByteArray content() const;
QString protocol() const;
virtual void accept();
private slots:
void contentChanged();
void protocolChanged(int);
@@ -63,6 +66,7 @@ private slots:
private:
const QList<Protocol *> m_protocols;
const QString m_commentPlaceHolder;
const QString m_mimeType;
Ui::ViewDialog m_ui;
FileDataList m_parts;